Bug #14794: xml_set_object() should take object by-reference

From: Date: Wed, 02 Jan 2002 07:19:35 +0000
Subject: Bug #14794: xml_set_object() should take object by-reference
Groups: php.dev 
Request: Send a blank email to php-dev+get-75560@lists.php.net to get a copy of this message
From:             vvo@geocities.com
Operating system: Linux 2.4 / Apache 1.3
PHP version:      4.1.1
PHP Bug Type:     XML related
Bug description:  xml_set_object() should take object by-reference

I am getting the following warning after I switched to
'php.ini-recommended':

Warning:  Call-time pass-by-reference has been deprecated - argument passed
by value;  If you would like to pass it by reference, modify the
declaration of xml_set_object()... 

Apparently, xml_set_object() takes an object by value, which renders this
functionality useless: The only way it's any good is when the object is
passed by reference, so that the event-receiving object is the same
instance that was passed as a parameter to xml_set_object() call.
Otherwise, there is no way for a copied object to pass parsed data out to
the caller of xml_set_object() (without global variables, of course).

Please fix xml_set_object() to take an object by reference.

Thanks.
-- 
Edit bug report at: http://bugs.php.net/?id=14794&edit=1



Thread (4 messages)

« previous php.dev (#75560) next »