Re: PHP apache2handler virtual() function
| From: | Patrick Schaaf | Date: | Mon, 16 Mar 2015 09:36:53 +0000 |
| Subject: | Re: PHP apache2handler virtual() function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85017@lists.php.net to get a copy of this message | ||
On Monday 16 March 2015 10:31:46 Patrick Schaaf wrote:
>
> Furthermore, I have a working prototype of changing the behaviour of
> virtual() in the following way: _remember_ which subrequest should be made,
> but then only really make it when the current request ends (php_handler()
> in the apache2handler SAPI has deconfigured the interpreter).
A related implementation question: ideally for this new behaviour to be sane,
I would like to make, in this case, virtual() not return at all when it thinks
it can make the subrequest. (a false return could still happen when apache
cannot route the request, I do not change the up-front lookup_uri call).
How would I go about doing that, though? i.e. in a PHP_FUNCTION(virtual), how
to I in effect do what the EXIT opcode normally does?
Patrick