Skip to content

Commit 954e7a3

Browse files
committed
- fix build, there was no tsrm context there, doing a fetch but this is horribly slow, this fix needs improvement (or simply add a TSRM context in the signature in master
1 parent 6c0508f commit 954e7a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_opcode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce)
308308
zend_hash_destroy(&ce->properties_info);
309309
str_efree(ce->name);
310310
if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) {
311+
TSRMLS_FETCH();
311312
zend_hash_apply(&ce->function_table, (apply_func_t)zend_clear_trait_method_name TSRMLS_CC);
312313
}
313314
zend_hash_destroy(&ce->function_table);

0 commit comments

Comments
 (0)