Skip to content

Commit 16176ad

Browse files
committed
Incase of invalid read
1 parent 3002492 commit 16176ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ void zend_optimizer_remove_live_range(zend_op_array *op_array, uint32_t var)
623623

624624
static uint32_t zend_determine_constructor_call(zend_op_array *op_array, uint32_t start) {
625625
int call = 0;
626-
while (start++ < op_array->last) {
626+
while (++start < op_array->last) {
627627
switch (op_array->opcodes[start].opcode) {
628628
case ZEND_INIT_FCALL_BY_NAME:
629629
case ZEND_INIT_NS_FCALL_BY_NAME:

0 commit comments

Comments
 (0)