mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +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
|