diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-25 18:32:35 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-25 18:32:35 +0800 |
commit | c2082ece52bcb5343ae0feb460807596cd79d691 (patch) | |
tree | 3f85e08b0389513932a60f8164dfe27a30884876 /Zend/zend_opcode.c | |
parent | 5d7f82745f46025af4fd89f7e3f3883e92d55509 (diff) | |
download | php-git-c2082ece52bcb5343ae0feb460807596cd79d691.tar.gz |
Fixed apply_func_t (they should be broken before)
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r-- | Zend/zend_opcode.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |