diff options
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_builtin_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 519bf02d88..47c7c6ea31 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -377,7 +377,7 @@ ZEND_FUNCTION(error_reporting) old_error_reporting = EG(error_reporting); - if (!err_is_null) { + if (!err_is_null && err != old_error_reporting) { zend_string *new_val = zend_long_to_str(err); if (UNEXPECTED(!new_val)) { RETURN_THROWS(); |