mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Merge branch 'PHP-7.3'
* PHP-7.3: Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user