Skip to content

Commit d51eb1d

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_ini: fix zend_result return values
The value "1" was illegal. Signed-off-by: George Peter Banyard <[email protected]>
1 parent 70ff10a commit d51eb1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_ini.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
5757
}
5858
if (stage == ZEND_INI_STAGE_RUNTIME && result == FAILURE) {
5959
/* runtime failure is OK */
60-
return 1;
60+
return FAILURE;
6161
}
6262
if (ini_entry->value != ini_entry->orig_value) {
6363
zend_string_release(ini_entry->value);
@@ -68,7 +68,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
6868
ini_entry->orig_value = NULL;
6969
ini_entry->orig_modifiable = 0;
7070
}
71-
return 0;
71+
return SUCCESS;
7272
}
7373
/* }}} */
7474

0 commit comments

Comments
 (0)