1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00
Files
archived-php-src/ext/xml/tests/bug72085.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

51 lines
1.7 KiB
PHP

--TEST--
Bug #72085 (SEGV on unknown address zif_xml_parse)
--EXTENSIONS--
xml
--FILE--
<?php
$var1 = xml_parser_create_ns();
xml_set_element_handler($var1, new Exception(""), 4096);
xml_parse($var1, str_repeat("<a>", 10));
?>
--EXPECTF--
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d
Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
Warning: xml_parse(): Unable to call handler in %s on line %d