mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Avoid repeatable work when error_reporting() is called with the same argument few times.
This commit is contained in:
parent
65859fe17e
commit
d0e043b294
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue