Skip to content

Commit 2d55e8c

Browse files
committed
Fix (revert) loop exit condition
1 parent 262160e commit 2d55e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/shared_alloc_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
206206
/* Mapping failed, wait for mapping object to get freed and retry */
207207
CloseHandle(memfile);
208208
memfile = NULL;
209-
if (++map_retries < MAX_MAP_RETRIES) {
209+
if (++map_retries >= MAX_MAP_RETRIES) {
210210
break;
211211
}
212212
zend_shared_alloc_unlock_win32();

0 commit comments

Comments
 (0)