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.
2 parents e5af673 + 0a24cd4 commit c70bab7Copy full SHA for c70bab7
ext/opcache/ZendAccelerator.c
@@ -4344,8 +4344,9 @@ static int accel_preload(const char *config)
4344
if (op_array->static_variables) {
4345
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
4346
if (ht) {
4347
- ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
4348
- zend_array_destroy(ht);
+ if (GC_DELREF(ht) == 0) {
+ zend_array_destroy(ht);
4349
+ }
4350
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);
4351
}
4352
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