PHP 4.0 Bug #6175 Updated: XML functions no longer work in objects

From: Date: Mon, 18 Sep 2000 01:10:31 +0000
Subject: PHP 4.0 Bug #6175 Updated: XML functions no longer work in objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-33408@lists.php.net to get a copy of this message
ID: 6175 Updated by: stas Reported By: jon@csh.rit.edu Status: Open Bug Type: *XML functions Assigned To: Comments: Previous Comments: --------------------------------------------------------------------------- [2000-08-23 10:30:05] jon@csh.rit.edu If you're referring to Andrei's changes that accept the array($this, 'fooHandler') syntax, no, it doesn't fix my problem, and I actually haven't gotten the new syntax to work correctly, either. I'll try and look into it some more later today. --------------------------------------------------------------------------- [2000-08-23 08:29:41] sniper@php.net Wasn't this just fixed in cvs?? --Jani --------------------------------------------------------------------------- [2000-08-21 10:25:09] jon@csh.rit.edu All of my attempts to reduce the problem to a short script have failed, but I have examples of working and non-working code you can look at. I've made them available here: http://orca.gaiaservers.com/work/xml.tar.gz xml.php works fine. help.xml is the XML source file used in the following two files. Help1.php calls the xml_* functions from the constructor and doesn't work. Help2.php calls the xml_* functions from a separate init method and does work. --------------------------------------------------------------------------- [2000-08-21 09:07:46] stas@php.net could you please provide an example of a runnable short script and XML file that doesn't work? --------------------------------------------------------------------------- [2000-08-20 12:22:51] jon@csh.rit.edu The PHP change fixes the call-time reference issue (so no more &$this), but the xml_* functions still don't work when called from the constructor. --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=6175

« previous php.dev (#33408) next »