Arquivos
hhvm/hphp/test/quick/exception_bug_more.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

17 linhas
255 B
PHP

<?php
function thrower() {
throw new Exception("Not MyJunk");
}
function foo() {
foreach (array(1,2,3) as $x) {
try {
thrower();
} catch (MyJunk $z) { echo "Not Here\n"; }
}
}
try {
foo();
} catch (Exception $x) { echo "done\n"; }