--TEST--
XML Parser: parse simple string
--SKIPIF--
--FILE--
XML_Parser();
}
function startHandler($xp, $element, $attribs) {
print "<$element";
reset($attribs);
while (list($key, $val) = each($attribs)) {
$enc = htmlentities($val);
print " $key=\"$enc\"";
}
print ">";
}
function endHandler($xp, $element) {
print "$element>\n";
}
function cdataHandler($xp, $cdata) {
print "";
}
function defaultHandler($xp, $cdata) {
}
}
error_reporting(1023);
print "new __TestParser1 ";
var_dump(strtolower(get_class($o = new __TestParser1())));
print "parseString ";
var_dump($o->parseString("foo", 1));
?>
--EXPECT--
new __TestParser1 string(13) "__testparser1"
parseString
bool(true)