mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
22 lines
334 B
PHP
22 lines
334 B
PHP
--TEST--
|
|
Catch second exception in the multicatch
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once __DIR__ . '/exceptions.inc';
|
|
|
|
try {
|
|
echo 'TRY' . PHP_EOL;
|
|
throw new Exception2;
|
|
} catch(Exception1 | Exception2 | Exception3 $e) {
|
|
echo get_class($e) . PHP_EOL;
|
|
} finally {
|
|
echo 'FINALLY' . PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
TRY
|
|
Exception2
|
|
FINALLY
|