fixed crash with PHP 5.3 and disable_display_errors=fail