From: Anatol Belski Date: Wed, 11 Jul 2018 11:09:20 +0000 (+0200) Subject: Fix condition X-Git-Tag: php-7.1.21RC1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98102648cb8a86facd025adefbf1dafc73537750;p=php Fix condition It looks like the real length limit is 247 bytes, not 248 as documented. --- diff --git a/win32/ioutil.c b/win32/ioutil.c index b9131dc759..d9c19564fb 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -311,7 +311,7 @@ PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode) int ret = 0; DWORD err = 0; - if (pathw_len < _MAX_PATH && pathw_len > _MAX_PATH - 12) { + if (pathw_len < _MAX_PATH && pathw_len >= _MAX_PATH - 12) { /* Special case here. From the doc: "When using an API to create a directory, the specified path cannot be