summaryrefslogtreecommitdiff
path: root/Zend/tests/try/try_multicatch_007.phpt
blob: aa073b0592072e7a4dc4ccb7ba9565a00ce09357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Catch second exception in the second multicatch
--FILE--
<?php
require_once __DIR__ . '/exceptions.inc';

try {
	echo 'TRY' . PHP_EOL;
	throw new Exception4;
} catch(Exception1 | Exception2 $e) {
	echo get_class($e) . PHP_EOL;
} catch(Exception3 | Exception4 $e) {
	echo get_class($e) . PHP_EOL;
} finally {
	echo 'FINALLY' . PHP_EOL;
}
?>
--EXPECT--
TRY
Exception4
FINALLY