Experimental Prototype
For any function:
function foo($a, $b) {
return $a + $b;
}
Use zend_ast_process
hook to inject the following instrumentation code into the AST:
function foo($a, $b) {
trace_start();
try {
return $a + $b;
} finally {
trace_end();
}
}