summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_ini.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index 2b32ac688a..032bf0d83d 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -315,8 +315,11 @@ ZEND_API int zend_restore_ini_entry(char *name, uint name_length, int stage) /*
}
if (EG(modified_ini_directives)) {
- zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);
- zend_hash_del(EG(modified_ini_directives), name, name_length);
+ if(zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC) == 0) {
+ zend_hash_del(EG(modified_ini_directives), name, name_length);
+ } else {
+ return FAILURE;
+ }
}
return SUCCESS;