Re: functions that don't work with call-time pass-by-reference disabled

From: Date: Sun, 20 Aug 2000 16:10:01 +0000
Subject: Re: functions that don't work with call-time pass-by-reference disabled
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29927@lists.php.net to get a copy of this message
On Sun, Aug 20, 2000 at 11:49:26AM -0400, Chuck Hagenbuch wrote: > There are a few functions that seem to depend on call-time > pass-by-reference being enabled. The two that I can think of right > now are xml_set_object and fsockopen (and pfsockopen). Right. I believe this is the cause of my recent bug report: http://bugs.php.net/?id=6175 These a workaround in the bug report provided by Lars Torben Wilson which appears to work alright for now, but it's still wrong. > I took a look at usort and tried to figure out how it was accepting > the array($object, 'method') syntax, but got completely lost. So if > someone could either fix xml_set_object, explain the array syntax, > or fix the xml_set_*_handler functions, I'd really, really > appreciate it. When I last looked at fixing this at the xml_set_object level, it basically appeared like the IS_STRING stuff needed to go, and call_user_func needed to be used instead. That's from a vague memory, however, with a lack of internal PHP / Zend knowledge to boot. -- Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.dev (#29927) next »