php-src/Zend/tests/bug60444.phpt

20 lines
318 B
Plaintext
Raw Normal View History

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