xref: /PHP-7.2/Zend/tests/bug30922.phpt (revision 4252942a)
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: Interface RecurisiveFooFar cannot implement itself in %sbug30922.php on line %d
14