Skip to content

Commit cc26604

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fix condition
2 parents a766f65 + 9810264 commit cc26604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode)
311311
int ret = 0;
312312
DWORD err = 0;
313313

314-
if (pathw_len < _MAX_PATH && pathw_len > _MAX_PATH - 12) {
314+
if (pathw_len < _MAX_PATH && pathw_len >= _MAX_PATH - 12) {
315315
/* Special case here. From the doc:
316316
317317
"When using an API to create a directory, the specified path cannot be

0 commit comments

Comments
 (0)