com php-src: Fix (revert) loop exit condition: ext/opcache/shar ed_alloc_win32.c

From: Date: Thu, 24 Sep 2015 08:19:26 +0000
Subject: com php-src: Fix (revert) loop exit condition: ext/opcache/shar ed_alloc_win32.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89155@lists.php.net to get a copy of this message
Commit: 2d55e8c186ef1034c2af64478da8f23dbeb28be9 Author: Dmitry Stogov <dmitry@zend.com> Thu, 24 Sep 2015 11:19:26 +0300 Parents: 262160e0e9919dce914df2f0643c4b16ca137454 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d55e8c186ef1034c2af64478da8f23dbeb28be9 Log: Fix (revert) loop exit condition Changed paths: M ext/opcache/shared_alloc_win32.c Diff: diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c index 141c95d..6ba608d 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();

« previous php.cvs (#89155) next »