Arquivos
hhvm/hphp/test/quick/exception_bug_1351681.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

15 linhas
279 B
PHP

<?php
function doThrow() { throw new Exception("blah!"); }
function foo() {
foreach (array(1, 2, 3) as $_) {
doThrow();
}
try { echo "Hi\n"; } catch (Exception $ex) { echo "We should not reach here\n"; }
}
try {
foo();
} catch (Exception $x) {
echo "it's ok\n";
}