PHP 4.0 Bug #3082 Updated: passing by reference between globals fails outside of function

From: Date: Tue, 30 May 2000 18:29:16 +0000
Subject: PHP 4.0 Bug #3082 Updated: passing by reference between globals fails outside of function
Groups: php.dev 
Request: Send a blank email to php-dev+get-19793@lists.php.net to get a copy of this message
ID: 3082 Updated by: stas Reported By: jmeskill@libertydistribution.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Yes, this is by design. When you declare something "global" inside function, you just assign it to be reference to global variable. When you reassign it to be reference to something else, old reference doesn't exist anymore. I think you should use $GLOBALS array for what you want. Full Bug description available at: http://bugs.php.net/version4/?id=3082

« previous php.dev (#19793) next »