mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fixed incorrect map_ptr slots counting
This commit is contained in:
parent
e63ed9d0da
commit
8ae06582c6
@ -2385,6 +2385,8 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
zend_map_ptr_extend(ZCSG(map_ptr_last));
|
||||
|
||||
#if ZEND_MM_ALIGNMENT < 8
|
||||
/* Align to 8-byte boundary */
|
||||
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,
|
||||
EG(num_errors) = 0;
|
||||
EG(errors) = NULL;
|
||||
|
||||
ZCSG(map_ptr_last) = CG(map_ptr_last);
|
||||
|
||||
zend_shared_alloc_destroy_xlat_table();
|
||||
|
||||
zend_shared_alloc_unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user