From: Jason at V7Studios dot com Operating system: Windows PHP version: 5.2.1 PHP Bug Type: Class/Object related Bug description: object references broken in 5.2.1
Description: ------------ A certain object reference situation that my code depends on has been broken in 5.2.1 on *windows*. It works on my linux production server running 5.2.1. Thanks. Reproduce code: --------------- class Foo { private $params = array(); function __set($name, $value){ $this->params[$name] = $value; } function &__get($name){ return $this->params[$name]; } } $foo = new Foo(); $ref =& $foo->bar; $ref = "This is a test"; print($foo->bar); Expected result: ---------------- It should print out "This is a test" Actual result: -------------- On windows, nothing is printed out. $foo->bar is not set. -- Edit bug report at http://bugs.php.net/?id=40436&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40436&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40436&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40436&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40436&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40436&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40436&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40436&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40436&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40436&r=support Expected behavior: http://bugs.php.net/fix.php?id=40436&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40436&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40436&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40436&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40436&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40436&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40436&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40436&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40436&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40436&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40436&r=mysqlcfg