#26981 [Opn->Fbk]: xml_parse looses object reference

From: Date: Wed, 21 Jan 2004 03:17:28 +0000
Subject: #26981 [Opn->Fbk]: xml_parse looses object reference
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53673@lists.php.net to get a copy of this message
ID: 26981 Updated by: sniper@php.net Reported By: schst@php.net -Status: Open +Status: Feedback Bug Type: XML related Operating System: Windows PHP Version: 5.0.0b3 (beta3) New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Also provide a SHORT example script. (No, PEAR scripts are NOT good test scripts!!) Previous Comments: ------------------------------------------------------------------------ [2004-01-20 14:33:52] schst@php.net Description: ------------ If using xml_set_object() to register handlers in an object, xml_parse sometimes looses the reference to the object and displays a warning: Warning: xml_parse() [function.xml-parse]: Unable to call handler startHandler() in C:\php4\PEAR\XML\Parser.php on line 264 Try PEAR::XML_RDDL to see the bug in action. If registering xml_set_element_handler( $p, array( $obj, 'method' ), array( $obj, 'method' ) ) it seems to work fine. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26981&edit=1

« previous php.bugs (#53673) next »