summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_persist_calc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/zend_persist_calc.c')
-rw-r--r--ext/opcache/zend_persist_calc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/opcache/zend_persist_calc.c b/ext/opcache/zend_persist_calc.c
index ebd1c61358..c3292ec2a1 100644
--- a/ext/opcache/zend_persist_calc.c
+++ b/ext/opcache/zend_persist_calc.c
@@ -534,6 +534,18 @@ void zend_persist_class_entry_calc(zend_class_entry *ce)
ADD_SIZE(sizeof(zend_trait_precedence*) * (i + 1));
}
}
+
+ if (ce->backed_enum_table) {
+ Bucket *p;
+ ADD_SIZE(sizeof(HashTable));
+ zend_hash_persist_calc(ce->backed_enum_table);
+ ZEND_HASH_FOREACH_BUCKET(ce->backed_enum_table, p) {
+ if (p->key != NULL) {
+ ADD_INTERNED_STRING(p->key);
+ }
+ zend_persist_zval_calc(&p->val);
+ } ZEND_HASH_FOREACH_END();
+ }
}
}