| 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_001.phpt |
--TEST--
Try catch finally (basic test)
--FILE--
<?php
function foo ($throw = FALSE) {
try {
echo "try\n";
if ($throw) {
throw new Exception("ex");
}
} catch (Exception $e) {
echo "catch\n";
} finally {
echo "finally\n";
}
echo "end\n";
}
foo();
echo "\n";
foo(true);
?>
--EXPECTF--
try
finally
end
try
catch
finally
end