summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorJérôme Loyet <fat@php.net>2010-04-19 20:45:03 (GMT)
committerJérôme Loyet <fat@php.net>2010-04-19 20:45:03 (GMT)
commit213436c3fbfe76bb7b2be3bb507da605adb5e98d (patch)
tree2e1134aecac7b35e5ebbce23827984080cfcebd2 /sapi
parentc93a4f192bb338aa9a22d44276684cf92dfe902d (diff)
downloadphp-213436c3fbfe76bb7b2be3bb507da605adb5e98d.tar.gz
true/false was not a valid value for boolean directives
Diffstat (limited to 'sapi')
-rw-r--r--sapi/fpm/fpm/xml_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/fpm/fpm/xml_config.c b/sapi/fpm/fpm/xml_config.c
index cfadd86..9990de6 100644
--- a/sapi/fpm/fpm/xml_config.c
+++ b/sapi/fpm/fpm/xml_config.c
@@ -24,8 +24,8 @@ static int xml_conf_sections_used = 0;
char *xml_conf_set_slot_boolean(void **conf, char *name, void *vv, intptr_t offset) /* {{{ */
{
char *value = vv;
- long value_y = !strcasecmp(value, "yes") || !strcmp(value, "1") || !strcasecmp(value, "on");
- long value_n = !strcasecmp(value, "no") || !strcmp(value, "0") || !strcasecmp(value, "off");
+ long value_y = !strcasecmp(value, "yes") || !strcmp(value, "1") || !strcasecmp(value, "on") || !strcasecmp(value, "true");
+ long value_n = !strcasecmp(value, "no") || !strcmp(value, "0") || !strcasecmp(value, "off") || !strcasecmp(value, "false");
if (!value_y && !value_n) {
return "xml_conf_set_slot(): invalid boolean value";