summaryrefslogtreecommitdiff
path: root/ext/xml/tests
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-11-13 05:37:49 +0000
committerJoe Watkins <krakjoe@php.net>2016-11-13 05:37:49 +0000
commitf77be645bccd73ace0ea3a0870b907523746181c (patch)
treea738474c81c259d425fbb2552296c608a39a16cf /ext/xml/tests
parent450a596ed3b724e60fa55f73bde4a47e05030538 (diff)
parent77efe76bf7a39a3320c0d40924c001e14f671482 (diff)
downloadphp-git-f77be645bccd73ace0ea3a0870b907523746181c.tar.gz
news entry for #1787
Diffstat (limited to 'ext/xml/tests')
-rw-r--r--ext/xml/tests/bug73135.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/xml/tests/bug73135.phpt b/ext/xml/tests/bug73135.phpt
new file mode 100644
index 0000000000..5fb43e91db
--- /dev/null
+++ b/ext/xml/tests/bug73135.phpt
@@ -0,0 +1,24 @@
+--TEST--
+Bug #73135 (xml_parse() segmentation fault)
+--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 \ No newline at end of file