diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-09-24 11:19:26 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-09-24 11:19:26 +0300 |
commit | 2d55e8c186ef1034c2af64478da8f23dbeb28be9 (patch) | |
tree | 9add19a4b6494671d41d2e09f5b8902d8ff8e0f0 /ext/opcache/shared_alloc_win32.c | |
parent | 262160e0e9919dce914df2f0643c4b16ca137454 (diff) | |
download | php-git-2d55e8c186ef1034c2af64478da8f23dbeb28be9.tar.gz |
Fix (revert) loop exit condition
Diffstat (limited to 'ext/opcache/shared_alloc_win32.c')
-rw-r--r-- | ext/opcache/shared_alloc_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c index 141c95d80e..6ba608d773 100644 --- a/ext/opcache/shared_alloc_win32.c +++ b/ext/opcache/shared_alloc_win32.c @@ -206,7 +206,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_ /* Mapping failed, wait for mapping object to get freed and retry */ CloseHandle(memfile); memfile = NULL; - if (++map_retries < MAX_MAP_RETRIES) { + if (++map_retries >= MAX_MAP_RETRIES) { break; } zend_shared_alloc_unlock_win32(); |