@@ -620,7 +620,7 @@ static void sapi_cgi_log_message(char *message, int syslog_type_int)
620
620
621
621
/* {{{ php_cgi_ini_activate_user_config
622
622
*/
623
- static void php_cgi_ini_activate_user_config (char * path , int path_len , const char * doc_root , int doc_root_len , int start )
623
+ static void php_cgi_ini_activate_user_config (char * path , int path_len , const char * doc_root , int doc_root_len )
624
624
{
625
625
char * ptr ;
626
626
time_t request_time = sapi_get_request_time ();
@@ -670,7 +670,7 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha
670
670
to find more user.ini, if not we only scan the current path.
671
671
*/
672
672
if (strncmp (s1 , s2 , s_len ) == 0 ) {
673
- ptr = s2 + start ; /* start is the point where doc_root ends! */
673
+ ptr = s2 + doc_root_len ;
674
674
while ((ptr = strchr (ptr , DEFAULT_SLASH )) != NULL ) {
675
675
* ptr = 0 ;
676
676
php_parse_user_ini_file (path , PG (user_ini_filename ), entry -> user_config );
@@ -744,7 +744,7 @@ static int sapi_cgi_activate(void) /* {{{ */
744
744
-- doc_root_len ;
745
745
}
746
746
747
- php_cgi_ini_activate_user_config (path , path_len , doc_root , doc_root_len , doc_root_len - 1 );
747
+ php_cgi_ini_activate_user_config (path , path_len , doc_root , doc_root_len );
748
748
}
749
749
}
750
750
0 commit comments