From 44fa6be16eca2eb3addc73f96c7a7e38f9d2fef2 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 17 Sep 2018 17:18:39 +0200 Subject: [PATCH] Set correct error code and adapt test --- Zend/zend_virtual_cwd.c | 2 +- .../tests/file/rename_variation13-win32.phpt | Bin 5058 -> 5250 bytes 2 files changed, 1 insertion(+), 1 deletion(-) 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 a5030761a508655e039097e9d81c9b8ba1ddbab9..51e14833fbea7c0d7792d3a953ba28acfba22183 100644 GIT binary patch delta 346 zcmX@4-lVx4r^(Z}y-88O J*^bwR9RO}`Fp~fP -- 2.40.0