Skip to content

Commit 3e2549d

Browse files
committed
Merge branch 'PHP-7.3'
* PHP-7.3: Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
2 parents 10b1ab9 + 8209a88 commit 3e2549d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

win32/ioutil.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,6 @@ __forceinline static char *php_win32_ioutil_getcwd(char *buf, size_t len)
483483
size_t tmp_bufa_len;
484484
DWORD err = 0;
485485

486-
if (len > PHP_WIN32_IOUTIL_MAXPATHLEN) {
487-
SET_ERRNO_FROM_WIN32_CODE(ERROR_BAD_LENGTH);
488-
return NULL;
489-
}
490-
491486
if (php_win32_ioutil_getcwd_w(tmp_bufw, len ? len : PHP_WIN32_IOUTIL_MAXPATHLEN) == NULL) {
492487
err = GetLastError();
493488
SET_ERRNO_FROM_WIN32_CODE(err);

0 commit comments

Comments
 (0)