mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
29 lines
424 B
PHP
29 lines
424 B
PHP
--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
|
|
}
|