Skip to content

Commit 3189a9f

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix allocation loop in zend_shared_alloc_startup()
2 parents 1c733c8 + bbcf9e7 commit 3189a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_shared_alloc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
199199
res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
200200
if (res) {
201201
/* this model works! */
202+
break;
202203
}
203-
break;
204204
}
205205
}
206206
}

0 commit comments

Comments
 (0)