#30959 [Fbk->NoF]: __call does not return by reference
| From: | php-bugs at lists dot php dot net | Date: | Tue, 08 Mar 2005 00:00:10 +0000 |
| Subject: | #30959 [Fbk->NoF]: __call does not return by reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75091@lists.php.net to get a copy of this message | ||
ID: 30959
Updated by: php-bugs@lists.php.net
Reported By: joel at zmail dot pt
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5.0.2
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 21:20:25] sniper@php.net
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
------------------------------------------------------------------------
[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