mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
29 lines
424 B
Plaintext
29 lines
424 B
Plaintext
|
--TEST--
|
||
|
Bug #50558 - Broken object model when extending tidy
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class MyTidy extends tidy
|
||
|
{
|
||
|
// foo
|
||
|
}
|
||
|
|
||
|
function doSomething(MyTidy $o)
|
||
|
{
|
||
|
var_dump($o);
|
||
|
}
|
||
|
|
||
|
$o = new MyTidy();
|
||
|
var_dump($o instanceof MyTidy);
|
||
|
doSomething($o);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
bool(true)
|
||
|
object(MyTidy)#%d (%d) {
|
||
|
["errorBuffer"]=>
|
||
|
NULL
|
||
|
["value"]=>
|
||
|
NULL
|
||
|
}
|