Re: [FPM] Reused PHP script as daemon process
| From: | Sebastian Krebs | Date: | Tue, 22 Apr 2014 07:59:11 +0000 |
| Subject: | Re: [FPM] Reused PHP script as daemon process | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73762@lists.php.net to get a copy of this message | ||
2014-04-22 0:27 GMT+02:00 Park Framework <park.framework@gmail.com>:
> 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 request.
>
> Sample:
>
> <?php
>
> 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.
--
github.com/KingCrunch