summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-10-12 14:40:27 (GMT)
committerPierre Joye <pajoye@php.net>2009-10-12 14:40:27 (GMT)
commite5d4b019b9097307b0180b1a8e66338d949e6f0a (patch)
treeb9e1aec6bf2dd4414999d7a9b6a092ab62f7b72b /sapi
parent884cf3f1c045fb9b0c98ad011f4158cc8eabb72a (diff)
downloadphp-e5d4b019b9097307b0180b1a8e66338d949e6f0a.tar.gz
- #48779, improve fix, drop usage of _tolower and use zend_strtolower
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 29eaf40..eaf47ff 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -820,7 +820,7 @@ static int sapi_cgi_activate(TSRMLS_D)
path[path_len] = 0;
#ifdef PHP_WIN32
/* paths on windows should be case-insensitive */
- strlwr(path);
+ zend_str_tolower(path, path_len);
#endif
/* Activate per-dir-system-configuration defined in php.ini and stored into configuration_hash during startup */
@@ -838,7 +838,7 @@ static int sapi_cgi_activate(TSRMLS_D)
#ifdef PHP_WIN32
/* paths on windows should be case-insensitive */
doc_root = estrndup(doc_root, doc_root_len);
- strlwr(doc_root);
+ zend_str_tolower(doc_root, doc_root_len);
#endif
php_cgi_ini_activate_user_config(path, path_len, doc_root, doc_root_len, doc_root_len - 1 TSRMLS_CC);
}