mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
16 lines
233 B
PHP
16 lines
233 B
PHP
--TEST--
|
|
Trying to throw exception of an interface
|
|
--FILE--
|
|
<?php
|
|
|
|
interface a { }
|
|
|
|
throw new a();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot instantiate interface a in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|