1--TEST--
2Catch exception in the nested multicatch
3--FILE--
4<?php
5
6require_once __DIR__ . '/exceptions.inc';
7
8try {
9	try {
10		echo 'TRY' . PHP_EOL;
11		throw new Exception3;
12	} catch (Exception1 | Exception3 $e) {
13		echo get_class($e) . PHP_EOL;
14	}
15} catch(Exception2 | Exception3 $e) {
16	echo 'Should never be executed';
17} finally {
18	echo 'FINALLY' . PHP_EOL;
19}
20
21?>
22--EXPECT--
23TRY
24Exception3
25FINALLY
26