From: Antony Dovgal Date: Wed, 10 May 2006 14:04:18 +0000 (+0000) Subject: add missing parts of E_RECOVERABLE merge X-Git-Tag: php-5.2.0RC1~615 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a03fc5ef3dcd4ae10a9a223c031d872848dff2b;p=php add missing parts of E_RECOVERABLE merge --- diff --git a/Zend/zend.c b/Zend/zend.c index 66628e182b..669a9becf8 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -923,6 +923,7 @@ ZEND_API void zend_error(int type, const char *format, ...) case E_USER_ERROR: case E_USER_WARNING: case E_USER_NOTICE: + case E_RECOVERABLE_ERROR: if (zend_is_compiling(TSRMLS_C)) { error_filename = zend_get_compiled_filename(TSRMLS_C); error_lineno = zend_get_compiled_lineno(TSRMLS_C); diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c index bc678e2e71..ec3e1e587a 100644 --- a/Zend/zend_constants.c +++ b/Zend/zend_constants.c @@ -96,6 +96,7 @@ int zend_startup_constants(TSRMLS_D) void zend_register_standard_constants(TSRMLS_D) { REGISTER_MAIN_LONG_CONSTANT("E_ERROR", E_ERROR, CONST_PERSISTENT | CONST_CS); + REGISTER_MAIN_LONG_CONSTANT("E_RECOVERABLE_ERROR", E_RECOVERABLE_ERROR, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("E_WARNING", E_WARNING, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("E_PARSE", E_PARSE, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("E_NOTICE", E_NOTICE, CONST_PERSISTENT | CONST_CS); diff --git a/main/main.c b/main/main.c index 1bf2996b53..732049f0d7 100644 --- a/main/main.c +++ b/main/main.c @@ -725,6 +725,9 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ case E_USER_ERROR: error_type_str = "Fatal error"; break; + case E_RECOVERABLE_ERROR: + error_type_str = "Catchable fatal error"; + break; case E_WARNING: case E_CORE_WARNING: case E_COMPILE_WARNING: @@ -814,6 +817,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ } /* no break - intentionally */ case E_ERROR: + case E_RECOVERABLE_ERROR: /* case E_PARSE: the parser would return 1 (failure), we can bail out nicely */ case E_COMPILE_ERROR: case E_USER_ERROR: