php-src/Zend/tests/bug60444.phpt
2020-08-09 22:03:36 +02:00

20 lines
318 B
PHP

--TEST--
Bug #60444 (Segmentation fault with include & class extending)
--FILE--
<?php
class Foo {
public function __construct() {
eval("class Bar extends Foo {}");
Some::foo($this);
}
}
class Some {
public static function foo(Foo $foo) {
}
}
new Foo;
echo "done\n";
?>
--EXPECT--
done