| Current Path : /hdd/hdd21/main/php5/php-5.6.6/Zend/tests/ |
| Current File : //hdd/hdd21/main/php5/php-5.6.6/Zend/tests/catch_finally_005.phpt |
--TEST--
Try catch finally (with multi-returns and exception)
--FILE--
<?php
function foo ($a) {
try {
throw new Exception("ex");
} catch (PdoException $e) {
die("error");
} catch (Exception $e) {
return 2;
} finally {
return 3;
}
return 1;
}
var_dump(foo("para"));
?>
--EXPECTF--
int(3)