com php-src: Add missed mutability check: Zend/zend_execute _API.c
| From: | Nikita Popov | Date: | Wed, 28 Aug 2019 15:35:25 +0000 |
| Subject: | com php-src: Add missed mutability check: Zend/zend_execute _API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108113@lists.php.net to get a copy of this message | ||
Commit: f912445eb21c74403e3e7a827cc14094c66fefd6
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 28 Aug 2019 17:31:52 +0200
Parents: c45f19590c4d442c0ecf5a3b55cd0fb928243e6a
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f912445eb21c74403e3e7a827cc14094c66fefd6
Log:
Add missed mutability check
Changed paths:
M Zend/zend_execute_API.c
Diff:
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 210817f..4f7f54f 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -307,7 +307,7 @@ void shutdown_executor(void) /* {{{ */
if (op_array->static_variables) {
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
if (ht) {
- if (GC_DELREF(ht) == 0) {
+ if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) == 0) {
zend_array_destroy(ht);
}
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);