]> granicus.if.org Git - php/commitdiff
Set correct error code and adapt test
authorAnatol Belski <ab@php.net>
Mon, 17 Sep 2018 15:18:39 +0000 (17:18 +0200)
committerAnatol Belski <ab@php.net>
Mon, 17 Sep 2018 15:19:39 +0000 (17:19 +0200)
Zend/zend_virtual_cwd.c
ext/standard/tests/file/rename_variation13-win32.phpt

index 574a47daafb4ecbc743507902371eb68bd49b832..079fab3eb6db524049e50ad9114dbd95bde54c94 100644 (file)
@@ -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
index a5030761a508655e039097e9d81c9b8ba1ddbab9..51e14833fbea7c0d7792d3a953ba28acfba22183 100644 (file)
Binary files a/ext/standard/tests/file/rename_variation13-win32.phpt and b/ext/standard/tests/file/rename_variation13-win32.phpt differ