PHP 4.0 Bug #1971 Updated: Problem with unsetting global-variables

From: Date: Sat, 07 Aug 1999 17:11:17 +0000
Subject: PHP 4.0 Bug #1971 Updated: Problem with unsetting global-variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-9625@lists.php.net to get a copy of this message
ID: 1971 Updated by: zeev Reported By: jeress@iname.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: This is an undocumented incompatiblity to an undocumented behavior. in PHP 4.0 - with the notion of references - the behavior of unset() is extremely clear - only the symbol you unset() is unset. In this case, $tv is a local variable that points to the global variable with the same name - so unsetting it only unsets the local $tv. If you want to unset the actual global $tv, you should use unset($GLOBALS["tv"]) Full Bug description available at: http://bugs.php.net/version4/?id=1971

« previous php.dev (#9625) next »