Skip to content

beberlei/php-ast-tracer-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
   }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published