From:             [EMAIL PROTECTED]
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.


Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to