diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-08-03 14:17:58 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-08-03 14:17:58 +0000 |
| commit | 5cff1c6e7e83cad9c3d2b4ec68777e585c4baa4b (patch) | |
| tree | e7fbca70062eb32be561f7dfe4e8e933578b5c31 /TSRM | |
| parent | 58c227828481e5bb9171a8576b450c3f1a3c2ad7 (diff) | |
| download | php-git-5cff1c6e7e83cad9c3d2b4ec68777e585c4baa4b.tar.gz | |
MFH: fix #38276 (file_exists() works incorrectly with long filenames on Windows)
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); |
