note 20356 deleted from function.call-user-method by didou
| From: | didou@php.net | Date: | Fri, 22 Aug 2003 11:11:41 +0000 |
| Subject: | note 20356 deleted from function.call-user-method by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54862@lists.php.net to get a copy of this message | ||
Note Submitter: hewei@ied.org.cn
----
bachi@insign.ch's failure of getting $a increased was beacuse call_user_method WAS expecting
its second parameter being passed by value rather than by reference. So every time call_user_method
("increase", $t) was called, a copy of $t was made with its $a property being the value of
that moment, in the above codes, 3. So one would get 1,2,3,4,4,4.
However, in the current version of PHP I'm using, 4.1.2. I do get 1,2,3,4,5,6. So probably the
defination of call_user_method has been changed.