XML & deprecated "Call-time pass-by-reference"
| From: | kellan | Date: | Mon, 20 Jan 2003 08:43:46 +0000 |
| Subject: | XML & deprecated "Call-time pass-by-reference" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132223@lists.php.net to get a copy of this message | ||
I have an RSS parser that uses PHP's expat XML functions. Recently PHP
started complaining about "Call-time pass-by-reference has been
deprecated" whenever I used the idiom:
xml_set_object( $this->parser, &$this );
Does that mean the function xml_set_object has been deprecated as well?
Is there another preferred way to call xml_set_object? Is there another
preferred way to wrap XML parsing inside an object?
Thanks
Kellan
ps. the full text of the warning is:
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(). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any longer.
in /home/kellan/projs/magpierss/rss_parse.inc on line 124