]> granicus.if.org Git - php/commitdiff
add test for bug #65236
authorJohannes Schlüter <johannes@php.net>
Wed, 10 Jul 2013 17:35:18 +0000 (19:35 +0200)
committerJohannes Schlüter <johannes@php.net>
Wed, 10 Jul 2013 17:35:18 +0000 (19:35 +0200)
ext/xml/tests/bug65236.phpt [new file with mode: 0644]

diff --git a/ext/xml/tests/bug65236.phpt b/ext/xml/tests/bug65236.phpt
new file mode 100644 (file)
index 0000000..67b26d6
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+Bug #65236 (heap corruption in xml parser)
+--SKIPIF--
+<?php
+require_once("skipif.inc");
+?>
+--FILE--
+<?php
+xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
+Done