Skip to content

Commit

Permalink
phpt file to bug #73135
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarsandi authored and krakjoe committed Nov 12, 2016
1 parent 319822b commit 1631c61
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ext/xml/tests/bug73135.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--TEST--
Bug #73135 (xml_parse() segmentation fault)
--CREDITS--
edgarsandi - <[email protected]>
--FILE--
<?php
function start_elem($parser, $xml) {
xml_parse($parser, $xml);
}

$xml = <<<HERE
<a xmlns="ahihi">
<bar foo="ahihi"/>
</a>
HERE;

$parser = xml_parser_create_ns();
xml_set_element_handler($parser, 'start_elem', 'ahihi');
xml_parse($parser, $xml);
?>
--EXPECTF--
Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d

Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d

0 comments on commit 1631c61

Please sign in to comment.