com php-src: Revert "Use E_ERROR | E_EXCEPTION in FAST_ZPP mode too": Zend/zend_API.h
| From: | Nikita Popov | Date: | Sun, 22 Mar 2015 08:17:42 +0000 |
| Subject: | com php-src: Revert "Use E_ERROR | E_EXCEPTION in FAST_ZPP mode too": Zend/zend_API.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85761@lists.php.net to get a copy of this message | ||
Commit: ccfd53886f3f9aefc72c18c9a40b8e2b3015955b
Author: Nikita Popov <nikic@php.net> Sun, 22 Mar 2015 09:17:42 +0100
Parents: d4da7c20d2d642a6f0f81bde836576b9970969af
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ccfd53886f3f9aefc72c18c9a40b8e2b3015955b
Log:
Revert "Use E_ERROR | E_EXCEPTION in FAST_ZPP mode too"
This reverts commit d4da7c20d2d642a6f0f81bde836576b9970969af.
The argument passed to this function refers to the weak mode
severity, strict mode will get an exception in any case.
Changed paths:
M Zend/zend_API.h
Diff:
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index d97b376..bd90e95 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -757,7 +757,7 @@ ZEND_API void ZEND_FASTCALL zend_wrong_callback_error(int severity, int num, cha
if (UNEXPECTED(error_code != ZPP_ERROR_OK)) { \
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
if (error_code == ZPP_ERROR_WRONG_CALLBACK) { \
- zend_wrong_callback_error(E_ERROR | E_EXCEPTION, _i, _error); \
+ zend_wrong_callback_error(E_WARNING, _i, _error); \
} else if (error_code == ZPP_ERROR_WRONG_CLASS) { \
zend_wrong_paramer_class_error(_i, _error, _arg); \
} else if (error_code == ZPP_ERROR_WRONG_ARG) { \