diff options
author | Anatol Belski <ab@php.net> | 2018-10-03 00:22:34 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-10-03 00:22:34 +0200 |
commit | 3e2549d74f0b00a471eb2629ac367f60541098f5 (patch) | |
tree | a191914be9570350ce6f6129d4302b0fc9f0da4d /win32/ioutil.h | |
parent | 10b1ab92754c05735b4a8118d84605856d73e539 (diff) | |
parent | 8209a8821cc934f81ffaa46dd8b0d0f2f546211f (diff) | |
download | php-git-3e2549d74f0b00a471eb2629ac367f60541098f5.tar.gz |
Merge branch 'PHP-7.3'
* PHP-7.3:
Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
Diffstat (limited to 'win32/ioutil.h')
-rw-r--r-- | win32/ioutil.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/win32/ioutil.h b/win32/ioutil.h index f4c175ac66..9da518dbc4 100644 --- a/win32/ioutil.h +++ b/win32/ioutil.h @@ -483,11 +483,6 @@ __forceinline static char *php_win32_ioutil_getcwd(char *buf, size_t len) size_t tmp_bufa_len; DWORD err = 0; - if (len > PHP_WIN32_IOUTIL_MAXPATHLEN) { - SET_ERRNO_FROM_WIN32_CODE(ERROR_BAD_LENGTH); - return NULL; - } - if (php_win32_ioutil_getcwd_w(tmp_bufw, len ? len : PHP_WIN32_IOUTIL_MAXPATHLEN) == NULL) { err = GetLastError(); SET_ERRNO_FROM_WIN32_CODE(err); |