From c2082ece52bcb5343ae0feb460807596cd79d691 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 25 May 2014 18:32:35 +0800 Subject: Fixed apply_func_t (they should be broken before) --- Zend/zend_opcode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Zend/zend_opcode.c') diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index d1c4e681e1..c0fc94a120 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -715,10 +715,15 @@ ZEND_API int pass_two(zend_op_array *op_array TSRMLS_DC) return 0; } +int pass_two_wrapper(zval *el TSRMLS_DC) +{ + return pass_two((zend_op_array*)Z_PTR_P(el)); +} + int print_class(zend_class_entry *class_entry TSRMLS_DC) { printf("Class %s:\n", class_entry->name->val); - zend_hash_apply(&class_entry->function_table, (apply_func_t) pass_two TSRMLS_CC); + zend_hash_apply(&class_entry->function_table, pass_two_wrapper TSRMLS_CC); printf("End of class %s.\n\n", class_entry->name->val); return 0; } -- cgit v1.2.1