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 8c5aff6 commit 0d36c0eCopy full SHA for 0d36c0e
Zend/zend_inheritance.c
@@ -1755,12 +1755,12 @@ static void zend_link_hooked_object_iter(zend_class_entry *ce) {
1755
ce->get_iterator = zend_hooked_object_get_iterator;
1756
ce->ce_flags &= ~ZEND_ACC_CACHEABLE;
1757
if (CG(current_linking_class) == ce) {
1758
+#if ZEND_DEBUG
1759
+ /* This check is executed before inheriting any elements that can
1760
+ * track dependencies. */
1761
HashTable *ht = (HashTable*)ce->inheritance_cache;
- if (ht) {
- zend_hash_destroy(ht);
- FREE_HASHTABLE(ht);
1762
- ce->inheritance_cache = NULL;
1763
- }
+ ZEND_ASSERT(!ht);
+#endif
1764
CG(current_linking_class) = NULL;
1765
}
1766
0 commit comments