mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.0'
* PHP-8.0: Fix return value of xml_parse(_into_struct) for recursive parsing
This commit is contained in:
@@ -21,10 +21,6 @@ HERE;
|
||||
xml_parse($parser, $xml);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: xml_parse(): Parser must not be called recursively in %s%ebug73135.php on line %d
|
||||
|
||||
Warning: xml_parse(): Parser must not be called recursively in %s%ebug73135.php on line %d
|
||||
|
||||
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
|
||||
Fatal error: Uncaught Error: Parser must not be called recursively in %s:%d
|
||||
Stack trace:
|
||||
%a
|
||||
|
||||
@@ -1251,8 +1251,8 @@ PHP_FUNCTION(xml_parse)
|
||||
|
||||
parser = Z_XMLPARSER_P(pind);
|
||||
if (parser->isparsing) {
|
||||
php_error_docref(NULL, E_WARNING, "Parser must not be called recursively");
|
||||
RETURN_FALSE;
|
||||
zend_throw_error(NULL, "Parser must not be called recursively");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
parser->isparsing = 1;
|
||||
ret = XML_Parse(parser->parser, (XML_Char*)data, data_len, isFinal);
|
||||
|
||||
Reference in New Issue
Block a user