ID: 30959 Updated by: [EMAIL PROTECTED] Reported By: joel at zmail dot pt -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem -Operating System: WinXP, Debian Sarge +Operating System: * PHP Version: 5.0.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-12-02 12:43:27] joel at zmail dot pt Description: ------------ __call doesn't return by reference Reproduce code: --------------- class A{ private $x = 123; public function & __call($m,$a){ return $this->x; } } $a = new A(); $x = & $a->UndefMethod(); $x = 789; $y = & $a->UndefMethod(); Expected result: ---------------- $y should be 789, but it is 123 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30959&edit=1