[FPM] Reused PHP script as daemon process

From: Date: Mon, 21 Apr 2014 22:27:45 +0000
Subject: [FPM] Reused PHP script as daemon process
Groups: php.internals 
Request: Send a blank email to internals+get-73757@lists.php.net to get a copy of this message
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.

« previous php.internals (#73757) next »