xref: /PHP-8.0/Zend/tests/bug30922.phpt (revision d30cd7d7)
1--TEST--
2Bug #30922 (reflective functions crash PHP when interfaces extend themselves)
3--FILE--
4<?php
5interface RecurisiveFooFar extends RecurisiveFooFar {}
6class A implements RecurisiveFooFar {}
7
8$a = new A();
9var_dump($a instanceOf A);
10echo "ok\n";
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17