xref: /PHP-8.1/ext/xml/tests/bug65236.phpt (revision 8567bc10)
1--TEST--
2Bug #65236 (heap corruption in xml parser)
3--EXTENSIONS--
4xml
5--FILE--
6<?php
7xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);
8
9echo "Done\n";
10?>
11--EXPECTF--
12Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
13Done
14