1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

[ci skip] Make test more robust

This commit is contained in:
Niels Dossche
2024-07-06 14:46:07 +02:00
parent fff206ba1e
commit b418d19c42

View File

@@ -22,13 +22,10 @@ $long_xml_head = "<?xml version=\"1.0\"?><container><$long_text/><$long_text/><s
$long_xml_tail = "</container>";
$parser = createParser(false);
$ret = xml_parse($parser, $long_xml_head, true);
echo "ret = $ret (", xml_error_string(xml_get_error_code($parser)), ")\n";
$parser = createParser(true);
$ret = xml_parse($parser, $long_xml_head, false);
$parser = createParser(true);
$ret = xml_parse_into_struct($parser, $long_xml_head . $long_xml_tail, $values, $index);
?>
--EXPECTF--
ret = 0 (XML_ERR_NAME_REQUIRED)
Fatal error: Allowed memory size of %d bytes exhausted %s in %s on line %d