PHP 4.0 Bug #2379: global variables get overwritten (all share a single storage location?)

From: Date: Sat, 25 Sep 1999 08:19:27 +0000
Subject: PHP 4.0 Bug #2379: global variables get overwritten (all share a single storage location?)
Groups: php.dev 
Request: Send a blank email to php-dev+get-11281@lists.php.net to get a copy of this message
From: peer@earthling.net Operating system: Linux PHP version: 4.0 Beta 2 PHP Bug Type: Scripting Engine problem Bug description: global variables get overwritten (all share a single storage location?) Description: When I have multiple globals they all seem to share the same storage location. When you have var1 and var2 changing either one's value will change both, etc. Sample script: <html> <body> <?php global $p,$q; $p = "1"; $q = "2"; echo "p=$p, q=$q<br>"; ?> </body> </html> Result: p=2, q=2 Should be: p=1, q=2 Modules: Just followed the quick build described in the INSTALL file. Using Apache 1.3.9 as server. System Specifics: Linux kernel 2.2.9 Mandrake 6.0

« previous php.dev (#11281) next »