We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f555fb commit 0a24cd4Copy full SHA for 0a24cd4
ext/opcache/ZendAccelerator.c
@@ -4290,8 +4290,9 @@ static int accel_preload(const char *config)
4290
if (op_array->static_variables) {
4291
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
4292
if (ht) {
4293
- ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
4294
- zend_array_destroy(ht);
+ if (GC_DELREF(ht) == 0) {
+ zend_array_destroy(ht);
4295
+ }
4296
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);
4297
}
4298
ext/opcache/tests/preload_bug78175_2.inc
@@ -15,6 +15,9 @@ class Loader {
15
16
17
18
+class ExtLoader extends Loader {
19
+}
20
+
21
Loader::getLoader();
22
Loader::getCounter();
23
0 commit comments