xref: /PHP-8.1/ext/tidy/tests/029.phpt (revision 7f2f0c00)
1--TEST--
2tidy_get_body() crash
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7
8// bug report taken from http://news.php.net/php.notes/130628
9
10$inputs = array(
11    '<frameset > </frameset>',
12    '<html><frameset> </frameset> </html',
13);
14
15
16foreach ($inputs as $input) {
17
18    $t = tidy_parse_string($input);
19    $t->cleanRepair();
20    var_dump(tidy_get_body($t));
21}
22
23echo "Done\n";
24?>
25--EXPECT--
26NULL
27NULL
28Done
29