diff options
author | Antony Dovgal <tony2001@php.net> | 2006-08-03 14:16:56 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-08-03 14:16:56 +0000 |
commit | acb6ad8e462a7f1fc06e41f7165e8492018bf977 (patch) | |
tree | 82f7c2aee180ac9e60adc87b43e9cabe43e9f00e /TSRM | |
parent | 30a2f9d219dd502ced33e5b1e02a41354a417764 (diff) | |
download | php-git-acb6ad8e462a7f1fc06e41f7165e8492018bf977.tar.gz |
fix #38276 (file_exists() works incorrectly with long filenames on Windows)
aka "Ilia forgot to MFB fix for #31347"
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 59a6b81d1d..3c713a1f79 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -706,7 +706,9 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC) } CWD_STATE_COPY(&new_state, &CWDG(cwd)); - virtual_file_ex(&new_state, path, NULL, 1); + if (virtual_file_ex(&new_state, path, NULL, 1)) { + return -1; + } f = fopen(new_state.cwd, mode); |