Re: [rfc] apache_hooks update (yet incomplete)
| From: | George Schlossnagle | Date: | Mon, 26 Aug 2002 16:52:59 +0000 |
| Subject: | Re: [rfc] apache_hooks update (yet incomplete) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87480@lists.php.net to get a copy of this message | ||
Here's an incremental patch on Lukas' patch which tries to address a
couple issues:
o The startup sequence has been changed to allow for post-data to make
it through if any hooks before full post-data is read are called
o works under register_globals Off ($request is now available in the
SERVER var hash when register globals is enabled)
o all hooks and the 'main' content handler all share a common scope
(there is only one call to zend_startup, and only one shutdown). This
is significantly cheaper plus it allows for handy stuff like creating
data structures in a hook and magicall passing them to other hooks or
into the main script. This is experimental and may break some of the
other sapi modules as-is (though that clearly wasn't the intention ;)
George
Lukas Schroeder wrote:
>hi,
>
>here's another shot of the current apache_hooks code.
>
>there are some issues with startup and cleanup currently.
>and the patch messes a bit with php's startup procedure.
>
>still missing is access to array_header (think headers_in, headers_out,
>headers_err) and table slot in request_rec, as is access to the
>whole connection structure of the request.
>
>but the string and int fields can be read and where appropriate written
>to. and there are some methods that wrap the ap_ family.
>
>
>
>regards,
> -lukas
>