PHP 4.0 Bug #5450: unset ain't doing it's job in functions

From: Date: Sat, 08 Jul 2000 05:42:24 +0000
Subject: PHP 4.0 Bug #5450: unset ain't doing it's job in functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-23772@lists.php.net to get a copy of this message
From: gregory@9voltnet.com Operating system: linux 2.2.14 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: unset ain't doing it's job in functions <% $a = 'value'; function foo() { global $a; unset($a); } function bar() { global $a; $a = 0; } print "$a\n"; print isset($a) . "\n"; foo(); print "$a\n"; print isset($a) . "\n"; bar(); print "$a\n"; print isset($a) . "\n"; %>

« previous php.dev (#23772) next »