Skip to content

Commit 710eee5

Browse files
committed
add test for bug #65236
1 parent 7d163e8 commit 710eee5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ext/xml/tests/bug65236.phpt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
Bug #65236 (heap corruption in xml parser)
3+
--SKIPIF--
4+
<?php
5+
require_once("skipif.inc");
6+
?>
7+
--FILE--
8+
<?php
9+
xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);
10+
11+
echo "Done\n";
12+
?>
13+
--EXPECTF--
14+
Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
15+
Done

0 commit comments

Comments
 (0)