xref: /PHP-8.4/ext/tidy/tests/bug54682.phpt (revision 186788f1)
1--TEST--
2Tidy::diagnose() NULL pointer dereference
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7
8$nx = new Tidy();
9$nx->diagnose();
10var_dump($nx);
11
12?>
13--EXPECTF--
14object(tidy)#%d (2) {
15  ["errorBuffer"]=>
16  NULL
17  ["value"]=>
18  NULL
19}
20