@@ -614,7 +614,7 @@ static void sapi_cgi_log_message(char *message, int syslog_type_int)
614
614
615
615
/* {{{ php_cgi_ini_activate_user_config
616
616
*/
617
- static void php_cgi_ini_activate_user_config (char * path , int path_len , const char * doc_root , int doc_root_len , int start )
617
+ static void php_cgi_ini_activate_user_config (char * path , int path_len , const char * doc_root , int doc_root_len )
618
618
{
619
619
char * ptr ;
620
620
time_t request_time = sapi_get_request_time ();
@@ -664,7 +664,7 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha
664
664
to find more user.ini, if not we only scan the current path.
665
665
*/
666
666
if (strncmp (s1 , s2 , s_len ) == 0 ) {
667
- ptr = s2 + start ; /* start is the point where doc_root ends! */
667
+ ptr = s2 + doc_root_len ;
668
668
while ((ptr = strchr (ptr , DEFAULT_SLASH )) != NULL ) {
669
669
* ptr = 0 ;
670
670
php_parse_user_ini_file (path , PG (user_ini_filename ), entry -> user_config );
@@ -741,7 +741,7 @@ static int sapi_cgi_activate(void) /* {{{ */
741
741
-- doc_root_len ;
742
742
}
743
743
744
- php_cgi_ini_activate_user_config (path , path_len , doc_root , doc_root_len , doc_root_len - 1 );
744
+ php_cgi_ini_activate_user_config (path , path_len , doc_root , doc_root_len );
745
745
}
746
746
}
747
747
0 commit comments