From: Pierre Joye Date: Mon, 22 Jun 2009 20:15:27 +0000 (+0000) Subject: - MF53: [PHP-CVS] cvs: php-src(PHP_5_3) /sapi/cgi cgi_main.c X-Git-Tag: php-5.4.0alpha1~191^2~3268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da915bc1c36a3998b9aad6fdbccdd34e83e6c100;p=php - MF53: [PHP-CVS] cvs: php-src(PHP_5_3) /sapi/cgi cgi_main.c --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 4356d7c1b9..230e19f2a2 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -751,7 +751,7 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha to find more user.ini, if not we only scan the current path. */ if (strncmp(s1, s2, s_len) == 0) { - ptr = s1 + start; /* start is the point where doc_root ends! */ + ptr = s2 + start; /* start is the point where doc_root ends! */ while ((ptr = strchr(ptr, DEFAULT_SLASH)) != NULL) { *ptr = 0; php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config TSRMLS_CC);