xref: /PHP-7.0/ext/tidy/tests/029.phpt (revision fa0efe45)
1--TEST--
2tidy_get_body() crash
3--SKIPIF--
4<?php if (!extension_loaded('tidy')) die('skip'); ?>
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