fixed trycatch testcase to make sure it works on PHP5.5+