#21108 [NEW]: ?: evaluates to copy of object

From: Date: Fri, 20 Dec 2002 10:53:06 +0000
Subject: #21108 [NEW]: ?: evaluates to copy of object
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28093@lists.php.net to get a copy of this message
From: RNova@gmx.net Operating system: Windows 98 PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: ?: evaluates to copy of object Since I do not know the internals of PHP, it's probably best to just give an example: $a = 11; function &f() { return TRUE ? $GLOBALS['a'] : $GLOBALS['a']; } function &g() { return $GLOBALS['a']; } $b =& f(); $b = 12; echo $a."<hr>"; $c =& g(); $c = 13; echo $a; ----- output: 11<hr>13 expected output: 12<hr>13 Thanks for fixing this, Cheers, Rai -- Edit bug report at http://bugs.php.net/?id=21108&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21108&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21108&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21108&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21108&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21108&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21108&r=support Expected behavior: http://bugs.php.net/fix.php?id=21108&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21108&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21108&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21108&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21108&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21108&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21108&r=isapi

« previous php.bugs (#28093) next »