PHP 4.0 Bug #9447: call_user_method functions do not pass references

From: Date: Sun, 25 Feb 2001 22:05:43 +0000
Subject: PHP 4.0 Bug #9447: call_user_method functions do not pass references
Groups: php.dev 
Request: Send a blank email to php-dev+get-47498@lists.php.net to get a copy of this message
From: wez.php@thebrainroom.com Operating system: all PHP version: 4.0 Latest CVS (25/02/2001) PHP Bug Type: Class/Object related Bug description: call_user_method functions do not pass references call_user_method and call_user_method_array functions do not force the object to be passed reference, and the call is made to a copy of the object. This kills off the use of objects, as when the call returns any changes made to the properties of the object are lost. I added my own call_user_method_array call to 4.0.4pl1 (prior to it appearing in CVS) which forces the object by reference. Could we change the behaviour so that the object parameters are passed by reference? I don't think this will break anyones scripts. --Wez. -- Edit Bug report at: http://bugs.php.net/?id=9447&edit=1

« previous php.dev (#47498) next »