xref: /PHP-5.6/ext/xml/tests/bug72085.phpt (revision 1bb92d52)
1--TEST--
2Bug #72085 (SEGV on unknown address zif_xml_parse)
3--SKIPIF--
4<?php
5if (!extension_loaded('xml')) die('skip xml extension not available');
6?>
7--FILE--
8<?php
9$var1 = xml_parser_create_ns();
10xml_set_element_handler($var1, new Exception(""), 4096);
11xml_parse($var1,  str_repeat("<a>", 10));
12?>
13===DONE===
14--EXPECTF--
15Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
16Stack trace:
17#0 {main}, no array or string given in %s%ebug72085.php on line %d
18
19Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
20
21Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
22Stack trace:
23#0 {main}, no array or string given in %s%ebug72085.php on line %d
24
25Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
26
27Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
28Stack trace:
29#0 {main}, no array or string given in %s%ebug72085.php on line %d
30
31Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
32
33Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
34Stack trace:
35#0 {main}, no array or string given in %s%ebug72085.php on line %d
36
37Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
38
39Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
40Stack trace:
41#0 {main}, no array or string given in %s%ebug72085.php on line %d
42
43Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
44
45Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
46Stack trace:
47#0 {main}, no array or string given in %s%ebug72085.php on line %d
48
49Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
50
51Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
52Stack trace:
53#0 {main}, no array or string given in %s%ebug72085.php on line %d
54
55Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
56
57Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
58Stack trace:
59#0 {main}, no array or string given in %s%ebug72085.php on line %d
60
61Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
62
63Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
64Stack trace:
65#0 {main}, no array or string given in %s%ebug72085.php on line %d
66
67Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
68
69Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
70Stack trace:
71#0 {main}, no array or string given in %s%ebug72085.php on line %d
72
73Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
74===DONE===
75