summaryrefslogtreecommitdiff
path: root/Zend/zend_ini.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r--Zend/zend_ini.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index 735981bed0..ab726c8d59 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -436,15 +436,14 @@ ZEND_INI_DISP(zend_ini_boolean_displayer_cb) /* {{{ */
if (tmp_value_len == 4 && strcasecmp(tmp_value, "true") == 0) {
value = 1;
- }
- else if (tmp_value_len == 3 && strcasecmp(tmp_value, "yes") == 0) {
+ } else if (tmp_value_len == 3 && strcasecmp(tmp_value, "yes") == 0) {
value = 1;
- }
- else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
+ } else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
value = 1;
- }
- else {
+ } else if (value) {
value = atoi(tmp_value);
+ } else {
+ value = 0;
}
if (value) {