|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-20 05:10 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 29 07:00:02 2026 UTC |
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