phpt compatibility with php < 5.3 [Release buffer on exception #99]