mirror of
https://github.com/php/php-src.git
synced 2024-12-19 23:11:42 +08:00
15 lines
221 B
PHP
15 lines
221 B
PHP
--TEST--
|
|
Throwing exception in global scope
|
|
--FILE--
|
|
<?php
|
|
|
|
throw new Exception(1);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Uncaught exception 'Exception' with message '1' in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|