note 46107 added to function.xml-set-object

From: Date: Wed, 29 Sep 2004 17:51:38 +0000
Subject: note 46107 added to function.xml-set-object
Groups: php.notes 
Request: Send a blank email to php-notes+get-77577@lists.php.net to get a copy of this message
Using PHP 4.3.0, I got this strange behaviour: <?php class xml { /* (as specified in the documentation above) */ } // end of class xml /* This code works */ $xml_parser = new xml(); $xml_parser->parse("<A ID='hallo'>PHP</A>"); /* This code works */ $xml_parser2 = new xml(); $xml_parser2->parse("<A ID='hallo2'>PHP2</A>"); /* This code DON'T work */ $xml_parser = new xml(); $xml_parser->parse("<A ID='hallo3'>PHP3</A>"); ?> In the third block of code, php complains it can't find the handlers it needs. It seems this problem only happens if the variable is used more than once. Calling xml_parser_free doesn't help ---- Manual Page -- http://www.php.net/manual/en/function.xml-set-object.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46107 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46107&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46107&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77577) next »