xref: /PHP-8.4/ext/tidy/tests/bug_50558.phpt (revision 7f2f0c00)
1--TEST--
2Bug #50558 - Broken object model when extending tidy
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7class MyTidy extends tidy
8{
9            // foo
10}
11
12function doSomething(MyTidy $o)
13{
14            var_dump($o);
15}
16
17$o = new MyTidy();
18var_dump($o instanceof MyTidy);
19doSomething($o);
20?>
21--EXPECTF--
22bool(true)
23object(MyTidy)#%d (%d) {
24  ["errorBuffer"]=>
25  NULL
26  ["value"]=>
27  NULL
28}
29