Annotation of embedaddon/php/ext/tidy/tests/029.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: tidy_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:
16: foreach ($inputs as $input) {
17:
18: $t = tidy_parse_string($input);
19: $t->cleanRepair();
20: var_dump(tidy_get_body($t));
21: }
22:
23: echo "Done\n";
24: ?>
25: --EXPECT--
26: NULL
27: NULL
28: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>