From: Anatol Belski Date: Mon, 17 Sep 2018 15:18:39 +0000 (+0200) Subject: Set correct error code and adapt test X-Git-Tag: php-7.4.0alpha1~1895 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44fa6be16eca2eb3addc73f96c7a7e38f9d2fef2;p=php Set correct error code and adapt test --- 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 Binary files a/ext/standard/tests/file/rename_variation13-win32.phpt and b/ext/standard/tests/file/rename_variation13-win32.phpt differ