Skip to content

Commit bbcf9e7

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix allocation loop in zend_shared_alloc_startup()
2 parents 0ee4371 + 6267601 commit bbcf9e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.8
44

5+
- Opcache:
6+
. Fix allocation loop in zend_shared_alloc_startup(). (nielsdos)
7+
58
- PCRE:
69
. Fix preg_replace_callback_array() pattern validation. (ilutov)
710

ext/opcache/zend_shared_alloc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
180180
res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
181181
if (res) {
182182
/* this model works! */
183+
break;
183184
}
184-
break;
185185
}
186186
}
187187
}

0 commit comments

Comments
 (0)