File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1400,7 +1400,7 @@ static void php_cli_server_request_translate_vpath(php_cli_server_request *reque
14001400 * p = '\0' ;
14011401 q = p ;
14021402 while (q > buf ) {
1403- if (!zend_stat (buf , & sb )) {
1403+ if (!VCWD_STAT (buf , & sb )) {
14041404 if (sb .st_mode & S_IFDIR ) {
14051405 const char * * file = index_files ;
14061406 if (q [-1 ] != DEFAULT_SLASH ) {
@@ -1409,7 +1409,7 @@ static void php_cli_server_request_translate_vpath(php_cli_server_request *reque
14091409 while (* file ) {
14101410 size_t l = strlen (* file );
14111411 memmove (q , * file , l + 1 );
1412- if (!zend_stat (buf , & sb ) && (sb .st_mode & S_IFREG )) {
1412+ if (!VCWD_STAT (buf , & sb ) && (sb .st_mode & S_IFREG )) {
14131413 q += l ;
14141414 break ;
14151415 }
@@ -2502,7 +2502,7 @@ int do_cli_server(int argc, char **argv) /* {{{ */
25022502 if (document_root ) {
25032503 zend_stat_t sb ;
25042504
2505- if (zend_stat (document_root , & sb )) {
2505+ if (VCWD_STAT (document_root , & sb )) {
25062506 fprintf (stderr , "Directory %s does not exist.\n" , document_root );
25072507 return 1 ;
25082508 }
You can’t perform that action at this time.
0 commit comments