From eb2266197fe463066d96c823d5f2c6a885ef09e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Loyet?= Date: Mon, 2 Aug 2010 21:46:52 +0000 Subject: [PATCH] BUG: all value comparaisons were not case insensitive in the conf file parser --- sapi/fpm/fpm/fpm_conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index 4590155c7f..d422d4380b 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf.c @@ -204,7 +204,7 @@ static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset) { char *val = Z_STRVAL_P(value); - if (!strcmp(val, "debug")) { + if (!strcasecmp(val, "debug")) { fpm_globals.log_level = ZLOG_DEBUG; } else if (!strcasecmp(val, "notice")) { fpm_globals.log_level = ZLOG_NOTICE; @@ -227,7 +227,7 @@ static char *fpm_conf_set_rlimit_core(zval *value, void **config, intptr_t offse char *val = Z_STRVAL_P(value); struct fpm_worker_pool_config_s *c = *config; - if (!strcmp(val, "unlimited")) { + if (!strcasecmp(val, "unlimited")) { c->rlimit_core = -1; } else { int int_value; @@ -255,9 +255,9 @@ static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset) /* {{{ { char *val = Z_STRVAL_P(value); struct fpm_worker_pool_config_s *c = *config; - if (!strcmp(val, "static")) { + if (!strcasecmp(val, "static")) { c->pm = PM_STYLE_STATIC; - } else if (!strcmp(val, "dynamic")) { + } else if (!strcasecmp(val, "dynamic")) { c->pm = PM_STYLE_DYNAMIC; } else { return "invalid process manager (static or dynamic)"; -- 2.40.0