Bug #9447 Updated: call_user_method functions do not pass references

From: Date: Sun, 09 Sep 2001 09:57:53 +0000
Subject: Bug #9447 Updated: call_user_method functions do not pass references
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65541@lists.php.net to get a copy of this message
ID: 9447 Updated by: sterling Reported By: wez.php@thebrainroom.com Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: all PHP Version: 4.0 Latest CVS (25/02/2001) New Comment: I think this has been implemented, anyway, call_user_method is outdated, just use call_user_function with the array(&$obj, "method") syntax. Previous Comments: ------------------------------------------------------------------------ [2001-02-25 17:05:43] wez.php@thebrainroom.com 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 this bug report at http://bugs.php.net/?id=9447&edit=1

« previous php.dev (#65541) next »