]> granicus.if.org Git - php/commitdiff
- MF53: [PHP-CVS] cvs: php-src(PHP_5_3) /sapi/cgi cgi_main.c
authorPierre Joye <pajoye@php.net>
Mon, 22 Jun 2009 20:15:27 +0000 (20:15 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 22 Jun 2009 20:15:27 +0000 (20:15 +0000)
sapi/cgi/cgi_main.c

index 4356d7c1b92fdfe45502a4596afd63e1c1f019dd..230e19f2a2f96f612fcd7e139ef5c0fe45b2ce66 100644 (file)
@@ -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);