Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49166 invoked from network); 16 Mar 2015 09:36:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 09:36:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:48785] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/49-00492-A34A6055 for ; Mon, 16 Mar 2015 04:36:58 -0500 Received: (qmail 28891 invoked by uid 1009); 16 Mar 2015 10:36:54 +0100 Received: from 192.109.53.146 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/20195. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:0(192.109.53.146):SA:0(1.3/8.0):. Processed in 0.251003 secs); 16 Mar 2015 09:36:54 -0000 X-Spam-Status: No, hits=1.3 required=8.0 X-Spam-Level: + X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:0(192.109.53.146):SA:0(1.3/8.0):. Processed in 0.251003 secs Process 28879) Received: from unknown (HELO rofl.localnet) (gmail@bof.de@192.109.53.146) by mars.intermailgate.com with AES256-SHA encrypted SMTP; 16 Mar 2015 10:36:54 +0100 To: internals@lists.php.net Date: Mon, 16 Mar 2015 10:36:53 +0100 Message-ID: <1830295.Un9m92b7il@rofl> User-Agent: KMail/4.14.4 (Linux/3.19.1-2.gc0946e9-desktop; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1807379.geZHnrMSPX@rofl> References: <1807379.geZHnrMSPX@rofl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: PHP apache2handler virtual() function From: php@bof.de (Patrick Schaaf) 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