Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52891 invoked from network); 22 Apr 2014 07:59:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2014 07:59:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-we0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:48565] helo=mail-we0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/B0-45364-A7126535 for ; Tue, 22 Apr 2014 03:59:54 -0400 Received: by mail-we0-f174.google.com with SMTP id t60so4516573wes.5 for ; Tue, 22 Apr 2014 00:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uKOzVYAPNYqdA2HaxYhbvxVSfGbgo+/jRCydz/33N68=; b=HCHSwxQriZfN8XXG1MjP0r3nOildDyizCTljM4UT5yTB7jlgnvgNLHBl/dB+AosLPb 8srkxaOrQgztLfuIp2gX8jKDbf2d5VRgxXVzB5JAr8oj8SHeL9BKix/4vpf4kwGYPMS1 gmaFb1olutUFZojKWLecpZhrfrbwlS3Rl5Lry0mYk5AiyHV8tS2mmssaTKgS2BykzNBD h5LjIAqor0nLl8Fr5bUTp6xzBwm/k0lGXUv9q/uaoHXM/GqGld558TSpup6iTTQIr1vX wW6Bwbb4/lNbe5b9vpL5SRcfMos2D+KgoLger3z0ggeBtVACb4KaUdcq+8/2UXrj06dG tcTQ== X-Received: by 10.180.13.208 with SMTP id j16mr6865195wic.58.1398153591158; Tue, 22 Apr 2014 00:59:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.61.212 with HTTP; Tue, 22 Apr 2014 00:59:11 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Apr 2014 09:59:11 +0200 Message-ID: To: Park Framework Cc: PHP internals list Content-Type: multipart/alternative; boundary=001a11c24440247f5104f79d00a5 Subject: Re: [PHP-DEV] [FPM] Reused PHP script as daemon process From: krebs.seb@gmail.com (Sebastian Krebs) --001a11c24440247f5104f79d00a5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2014-04-22 0:27 GMT+02:00 Park Framework : > Add, function fastcgi_handle_request(callable $name) for reused script as > daemon process. > > With each new request, all superglobals variables ($_GET, $POST, $_COOKIE= , > $_SERVER, ...) with new values from current =E2=80=8B=E2=80=8Brequest. > > Sample: > > > ob_start(); > set_time_limit(0); > > function run() > { > > //... payload > > fastcgi_finish_request(); > } > > fastcgi_handle_request('run'); > > ?> > > If you implement this functionality for PHP will be new opportunities and > performance optimization via runtime cache. > Actually that looks like fastcgi_handle_request() will block the process, which means, that this one fasctgi-process cannot get used for other scripts anymore. --=20 github.com/KingCrunch --001a11c24440247f5104f79d00a5--