mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
39 lines
579 B
PHP
39 lines
579 B
PHP
--TEST--
|
|
Testing nested exceptions
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
try {
|
|
try {
|
|
try {
|
|
throw new Exception(NULL);
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
throw $e;
|
|
}
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
throw $e;
|
|
}
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
throw $e;
|
|
}
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
throw $e;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
unicode(0) ""
|
|
unicode(0) ""
|
|
unicode(0) ""
|
|
unicode(0) ""
|
|
|
|
Fatal error: Uncaught exception 'Exception' in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|