Skip to content

Commit 16da46e

Browse files
committed
Zend/zend_ini: fix zend_result return values
The value "1" was illegal.
1 parent 9ce1892 commit 16da46e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_ini.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
6363
}
6464
if (stage == ZEND_INI_STAGE_RUNTIME && result == FAILURE) {
6565
/* runtime failure is OK */
66-
return 1;
66+
return FAILURE;
6767
}
6868
if (ini_entry->value != ini_entry->orig_value) {
6969
zend_string_release(ini_entry->value);
@@ -74,7 +74,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
7474
ini_entry->orig_value = NULL;
7575
ini_entry->orig_modifiable = 0;
7676
}
77-
return 0;
77+
return SUCCESS;
7878
}
7979
/* }}} */
8080

0 commit comments

Comments
 (0)