Re: Re: intercepting function calls

From: Date: Fri, 11 Feb 2005 02:34:06 +0000
Subject: Re: Re: intercepting function calls
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-14816@lists.php.net to get a copy of this message
At 11:01 AM 2/9/2005 -0500, George Schlossnagle wrote:
On Feb 9, 2005, at 10:57 AM, Sara Golemon wrote:
Is it possible to intercept a function call (user space or built-in) in the Zend Engine and execute user space code before/after the function call?
Yes, you can do this by way of a Zend extension (not a PHP extension mind you). The parts of Zend/zend_extensions.h you'll want to pay attention to are:
You can also do this by directly wrapping zend_execute. This is the preferred method if you're writing a profiler or such.
Yeah. Actually I thought we already nuked the old way. Is anyone using it? Andi

« previous php.internals (#14816) next »