Update error handler test for php52