mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
13 lines
176 B
Plaintext
13 lines
176 B
Plaintext
|
--TEST--
|
||
|
Trying to throw exception of an interface
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
interface a { }
|
||
|
|
||
|
throw new a();
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot instantiate interface a in %s on line %d
|