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.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index b7ca499893..072405b40b 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -437,14 +437,16 @@ ZEND_INI_DISP(zend_ini_boolean_displayer_cb) /* {{{ */
tmp_value_len = 0;
}
- if (tmp_value_len == 4 && strcasecmp(tmp_value, "true") == 0) {
- value = 1;
- } else if (tmp_value_len == 3 && strcasecmp(tmp_value, "yes") == 0) {
- value = 1;
- } else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
- value = 1;
- } else if (tmp_value) {
- value = atoi(tmp_value);
+ if (tmp_value) {
+ if (tmp_value_len == 4 && strcasecmp(tmp_value, "true") == 0) {
+ value = 1;
+ } else if (tmp_value_len == 3 && strcasecmp(tmp_value, "yes") == 0) {
+ value = 1;
+ } else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
+ value = 1;
+ } else (tmp_value) {
+ value = atoi(tmp_value);
+ }
} else {
value = 0;
}