Merge branch 'PHP-7.4'

This commit is contained in:
Nikita Popov 2019-09-11 09:53:18 +02:00
commit c70bab7b24
2 changed files with 6 additions and 2 deletions

View File

@ -4344,8 +4344,9 @@ static int accel_preload(const char *config)
if (op_array->static_variables) {
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
if (ht) {
ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
zend_array_destroy(ht);
if (GC_DELREF(ht) == 0) {
zend_array_destroy(ht);
}
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);
}
}

View File

@ -15,6 +15,9 @@ class Loader {
}
}
class ExtLoader extends Loader {
}
Loader::getLoader();
Loader::getCounter();
Loader::getCounter();