Skip to content

Commit 8ae0658

Browse files
committed
Fixed incorrect map_ptr slots counting
1 parent e63ed9d commit 8ae0658

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,8 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
23852385
return NULL;
23862386
}
23872387

2388+
zend_map_ptr_extend(ZCSG(map_ptr_last));
2389+
23882390
#if ZEND_MM_ALIGNMENT < 8
23892391
/* Align to 8-byte boundary */
23902392
ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L);
@@ -2428,6 +2430,8 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
24282430
EG(num_errors) = 0;
24292431
EG(errors) = NULL;
24302432

2433+
ZCSG(map_ptr_last) = CG(map_ptr_last);
2434+
24312435
zend_shared_alloc_destroy_xlat_table();
24322436

24332437
zend_shared_alloc_unlock();

0 commit comments

Comments
 (0)