Frankenstella, a PHP compiler
Tuesday, June 22, 2004
 
Altering zend.c : Getting PHP bytecode
1. zend.c calls the compile_file function
2. php bytecode is returned
3. stored in active_op_array

print active_op_array to get the bytecode.

active_op_array is a struct.
next step: find where active_op_array is defined so it can be printed.

ok, so active_op_array is defined in zend.hmore variable types such as zend_uchar can be further clarified in zend_types.h
Comments:
What you're looking for is zend_op_array, it's in zend_compile.h.

No doubt u'll be ticked off by this - tough!

The only way to prevent me from doing this is to do it BEFORE i do!
 
Print it out for tomorrow!
 
This comment has been removed by a blog administrator.
 
zend_types.h is actually listed as an external dependancy when working with v4.3.7 as opposed to 4.3.3 which was being used up until vld hack. 4.3.3 just had it listed as a header file. not of importance, just for future reference.
 
Post a Comment

<< Home

Powered by Blogger