ID: 25302 Updated by: [EMAIL PROTECTED] Reported By: rani_s_m2001 at yahoo dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: windows xp PHP Version: 4.3.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php There are dozens of other ways too to "shoot-yourself-in-foot"..just don't do it. Previous Comments: ------------------------------------------------------------------------ [2003-08-28 15:05:37] rani_s_m2001 at yahoo dot com Description: ------------ when creating an object on the globals array, referancing its members to a variable does not work properly. it works as expected in normal arrays. Reproduce code: --------------- <?php class a { var $r; function a() { $this->r=1; } } $GLOBALS["a"]=&new a(); $a=&$GLOBALS["a"]->r; print($a); $GLOBALS["a"]->r=2; //should print 2, instead prints 1 print($a); ?> Expected result: ---------------- 12 Actual result: -------------- 11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25302&edit=1
