xref: /PHP-8.2/Zend/tests/bug60444.phpt (revision 7aacc705)
1--TEST--
2Bug #60444 (Segmentation fault with include & class extending)
3--FILE--
4<?php
5class Foo {
6    public function __construct() {
7        eval("class Bar extends Foo {}");
8        Some::foo($this);
9    }
10}
11class Some {
12    public static function foo(Foo $foo) {
13    }
14}
15new Foo;
16echo "done\n";
17?>
18--EXPECT--
19done
20