Frankenstella, a PHP compiler
Monday, July 12, 2004
 
Hack for user defined functions & classes
At original incission point in zend.c, right after the vld_dump_oparray
zend_hash_apply (CG(function_table), (apply_func_t) vld_dump_fe TSRMLS_CC);
zend_hash_apply (CG(class_table), (apply_func_t) vld_dump_cle TSRMLS_CC);

# include zend_hash.c (maybe this isn't really neccessary)

Take srm_oparray.c and include definitions for
int vld_check_fe (zend_op_array *fe, zend_bool *have_fe TSRMLS_DC);
int vld_dump_fe (zend_op_array *fe TSRMLS_DC);
int vld_dump_cle (zend_class_entry *class_entry TSRMLS_DC);

don't forget to declare them in srm_oparry.h

Issues
1.had to take the 3 static declarations out, don't know why? maybe i should not have them declared in the header.
2.This only gives user defined functions.... What about the built in functions and ....??


Comments: Post a Comment

<< Home

Powered by Blogger