Bug #17052: problem with & operator and variables

From: Date: Mon, 06 May 2002 21:46:46 +0000
Subject: Bug #17052: problem with & operator and variables
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7081@lists.php.net to get a copy of this message
From: jx@email.cz Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Performance problem Bug description: problem with & operator and variables this is ok <? $a=&$b; $a=5; echo($b); ?> but when I declare these variables as globals in a function it doesn't work <? function foo() { global $a, $b; $a=&$b; } foo(); $a=5; echo($b); ?> It is probably allright. I didn't find anything about this problem. -- Edit bug report at http://bugs.php.net/?id=17052&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17052&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17052&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17052&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17052&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17052&r=support Expected behavior: http://bugs.php.net/fix.php?id=17052&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17052&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17052&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17052&r=globals

« previous php.bugs (#7081) next »