1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--TEST-- ZE2 An interface cannot be instantiated --FILE-- <?php interface if_a { function f_a(); } $t = new if_a(); ?> --EXPECTF-- Fatal error: Uncaught Error: Cannot instantiate interface if_a in %s:%d Stack trace: #0 {main} thrown in %s on line %d