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