Re: [FPM] Reused PHP script as daemon process

From: Date: Tue, 22 Apr 2014 11:12:45 +0000
Subject: Re: [FPM] Reused PHP script as daemon process
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-73765@lists.php.net to get a copy of this message
On 22 Apr 2014, at 02:27, Park Framework <park.framework@gmail.com> wrote: > 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. Exposing FastCGI lib to userland is something we already were talking about, but I don’t think your choice of API is good. Something like this would be much cleaner: $data = fastcgi_parse_request($input_stream_or_string); Then, you can call your handler manually, and: echo fastcgi_encode_response(200, ['hea' => ['de', 'rs']], $body); lower-level functions could be useful too (for partial answers, etc.) -- Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#73765) next »