mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
d30cd7d7e7
Closes GH-5590
17 lines
392 B
PHP
17 lines
392 B
PHP
--TEST--
|
|
Bug #30922 (reflective functions crash PHP when interfaces extend themselves)
|
|
--FILE--
|
|
<?php
|
|
interface RecurisiveFooFar extends RecurisiveFooFar {}
|
|
class A implements RecurisiveFooFar {}
|
|
|
|
$a = new A();
|
|
var_dump($a instanceOf A);
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|