xref: /PHP-8.2/Zend/tests/exception_003.phpt (revision d679f022)
1--TEST--
2Throwing exception in global scope
3--FILE--
4<?php
5
6throw new Exception(1);
7
8?>
9--EXPECTF--
10Fatal error: Uncaught Exception: 1 in %s:%d
11Stack trace:
12#0 {main}
13  thrown in %s on line %d
14