php-src/Zend/tests/bug60444.phpt

19 lines
291 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