Voting

: three plus zero?
(Example: nine)

The Note You're Voting On

lmfe at mega dot ist dot utl dot pt
20 years ago
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

<< Back to user notes page

To Top