From 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Oct 2018 10:48:29 +0300 Subject: [PATCH] typo --- UPGRADING.INTERNALS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index dabb88c92de..85011cf4c4a 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -124,13 +124,13 @@ PHP 7.4 INTERNALS UPGRADE NOTES h. Opcache may make classes and op_arrays immutable. Such classes are marked by ZEND_ACC_IMMUTABLE flag, they are not going to be copied from opcache - shard memory to process memory and must not be modified at all. + shared memory to process memory and must not be modified at all. Few related data structures were changed to allow addressing mutable data structures from immutable ones. This access is implemented through ZEND_MAP_PTR... abstraction macros and, basically, uses additional level of indirection. op_array->run_time_cache, op_array->static_variables_ptr, class_entry->static_members_table and class_entry->iterator_funcs_ptr now - have to be access through ZEND_MAP_PTR... macros. + have to be accessed through ZEND_MAP_PTR... macros. It's also not allowed to change op_array->reserved[] handles of immutable op_arrays. Instead, now you have to reserve op_array handle using zend_get_op_array_extension_handle() during MINIT and access its value