]> granicus.if.org Git - php/commitdiff
- fix build, there was no tsrm context there, doing a fetch but this is horribly...
authorPierre Joye <pierre.php@gmail.com>
Wed, 5 Sep 2012 11:00:04 +0000 (13:00 +0200)
committerPierre Joye <pierre.php@gmail.com>
Wed, 5 Sep 2012 11:00:04 +0000 (13:00 +0200)
Zend/zend_opcode.c

index 6eab0ae309a75521c564b9f4c615e31208d72e9d..4c6a784a8818a7f22eeccf536d849de569fbf91d 100644 (file)
@@ -308,6 +308,7 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce)
                        zend_hash_destroy(&ce->properties_info);
                        str_efree(ce->name);
                        if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) {
+                               TSRMLS_FETCH();
                                zend_hash_apply(&ce->function_table, (apply_func_t)zend_clear_trait_method_name TSRMLS_CC);
                        }
                        zend_hash_destroy(&ce->function_table);