summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_virtual_cwd.c2
-rw-r--r--ext/standard/tests/file/rename_variation13-win32.phptbin5058 -> 5250 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index 574a47daaf..079fab3eb6 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -1078,7 +1078,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
if (!path_length || path_length >= MAXPATHLEN-1) {
#ifdef ZEND_WIN32
- SET_ERRNO_FROM_WIN32_CODE(ERROR_PATH_NOT_FOUND);
+ SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
#else
errno = EINVAL;
#endif
diff --git a/ext/standard/tests/file/rename_variation13-win32.phpt b/ext/standard/tests/file/rename_variation13-win32.phpt
index a5030761a5..51e14833fb 100644
--- a/ext/standard/tests/file/rename_variation13-win32.phpt
+++ b/ext/standard/tests/file/rename_variation13-win32.phpt
Binary files differ