Skip to content

Commit 11452a2

Browse files
committed
Fixed file_exists() on platforms using VCWD.
#Why was this merged? It introduced a serious bug in 4.2.3.
1 parent ea7c3df commit 11452a2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ext/standard/filestat.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -559,19 +559,6 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ
559559
RETURN_FALSE;
560560
}
561561

562-
#ifndef PHP_WIN32
563-
switch (type) {
564-
case FS_IS_W:
565-
RETURN_BOOL (!access (filename, W_OK));
566-
case FS_IS_R:
567-
RETURN_BOOL (!access (filename, R_OK));
568-
case FS_IS_X:
569-
RETURN_BOOL (!access (filename, X_OK));
570-
case FS_EXISTS:
571-
RETURN_BOOL (!access (filename, F_OK));
572-
}
573-
#endif
574-
575562
stat_sb = &BG(sb);
576563

577564
if (!BG(CurrentStatFile) || strcmp(filename, BG(CurrentStatFile))) {

0 commit comments

Comments
 (0)