mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
27 lines
686 B
PHP
27 lines
686 B
PHP
--TEST--
|
|
Bug #73135 (xml_parse() segmentation fault)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('xml')) die('skip xml extension not loaded'); ?>
|
|
--CREDITS--
|
|
edgarsandi - <edgar.r.sandi@gmail.com>
|
|
--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
|