Skip to content

Commit

Permalink
- Fixed build and comment-style
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 9, 2009
1 parent 8e5a00e commit 994307d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions main/php_ini.c
Expand Up @@ -288,7 +288,7 @@ static void php_ini_parser_cb(zval *arg1, zval *arg2, zval *arg3, int callback_t
is_special_section = 1; is_special_section = 1;
has_per_dir_config = 1; has_per_dir_config = 1;
#ifdef PHP_WIN32 #ifdef PHP_WIN32
// make the path lowercase on Windows, for case insensitivty. /* make the path lowercase on Windows, for case insensitivty. */
strlwr(key); strlwr(key);


TRANSLATE_SLASHES(key); TRANSLATE_SLASHES(key);
Expand All @@ -301,7 +301,7 @@ static void php_ini_parser_cb(zval *arg1, zval *arg2, zval *arg3, int callback_t
key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1;
is_special_section = 1; is_special_section = 1;
has_per_host_config = 1; has_per_host_config = 1;
strlwr(key); // host names are case-insensitive. zend_str_tolower(key, key_len); /* host names are case-insensitive. */


} else { } else {
is_special_section = 0; is_special_section = 0;
Expand Down
8 changes: 4 additions & 4 deletions sapi/cgi/cgi_main.c
Expand Up @@ -794,8 +794,8 @@ static int sapi_cgi_activate(TSRMLS_D)
/* SERVER_NAME should also be defined at this stage..but better check it anyway */ /* SERVER_NAME should also be defined at this stage..but better check it anyway */
if (server_name) { if (server_name) {
server_name_len = strlen(server_name); server_name_len = strlen(server_name);
server_name = estrndup(server_name, strlen(server_name) ); server_name = estrndup(server_name, server_name_len);
strlwr(server_name); zend_str_tolower(server_name, server_name_len);
php_ini_activate_per_host_config(server_name, server_name_len + 1 TSRMLS_CC); php_ini_activate_per_host_config(server_name, server_name_len + 1 TSRMLS_CC);
efree(server_name); efree(server_name);
} }
Expand All @@ -819,7 +819,7 @@ static int sapi_cgi_activate(TSRMLS_D)
} }
path[path_len] = 0; path[path_len] = 0;
#ifdef PHP_WIN32 #ifdef PHP_WIN32
// paths on windows should be case-insensitive /* paths on windows should be case-insensitive */
strlwr(path); strlwr(path);
#endif #endif


Expand All @@ -836,7 +836,7 @@ static int sapi_cgi_activate(TSRMLS_D)
--doc_root_len; --doc_root_len;
} }
#ifdef PHP_WIN32 #ifdef PHP_WIN32
// paths on windows should be case-insensitive /* paths on windows should be case-insensitive */
doc_root = estrndup(doc_root, doc_root_len); doc_root = estrndup(doc_root, doc_root_len);
strlwr(doc_root); strlwr(doc_root);
#endif #endif
Expand Down

0 comments on commit 994307d

Please sign in to comment.