xref: /PHP-5.3/Zend/tests/exception_001.phpt (revision e4c76641)
1--TEST--
2Testing nested exceptions
3--FILE--
4<?php
5
6try {
7	try {
8		try {
9			try {
10				throw new Exception(NULL);
11			} catch (Exception $e) {
12				var_dump($e->getMessage());
13				throw $e;
14			}
15		} catch (Exception $e) {
16			var_dump($e->getMessage());
17			throw $e;
18		}
19	} catch (Exception $e) {
20		var_dump($e->getMessage());
21		throw $e;
22	}
23} catch (Exception $e) {
24	var_dump($e->getMessage());
25	throw $e;
26}
27
28?>
29--EXPECTF--
30string(0) ""
31string(0) ""
32string(0) ""
33string(0) ""
34
35Fatal error: Uncaught exception 'Exception' in %s:%d
36Stack trace:
37#0 {main}
38  thrown in %s on line %d
39