Thanks.. but now..
i read the zend_vm_def.h ...
ZEND_VM_HANDLER(1, ZEND_ADD, CONST|TMP|VAR|CV, CONST|TMP|VAR|CV)
{
zend_op *opline = EX(opline);
zend_free_op free_op1, free_op2;
add_function(&EX_T(opline->result.u.var).tmp_var,
GET_OP1_ZVAL_PTR(BP_VAR_R),
GET_OP2_ZVAL_PTR(BP_VAR_R) TSRMLS_CC);
FREE_OP1();
FREE_OP2();
ZEND_VM_NEXT_OPCODE();
where the add_function is defined? i want to create an intermediate form for
all operation (function) in order to obtain a "readable" control flow
graph..
Take a look at
http://lxr.php.net/ident?i=add_function
Also, you may want to wait or even contribute for a project we are starting to convert PHP bytecode to LLVM assembly. Then you could extract a control flow graph with LLVM libraries.
Nuno