|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-09 15:23 UTC] dpenning at s0nix dot de
[2003-12-09 01:31 UTC] james at grickel dot org
[2010-11-18 23:12 UTC] jani@php.net
-Package: Feature/Change Request
+Package: CGI related
-Operating System:
+Operating System: *
-PHP Version: Irrelevant
+PHP Version: *
[2015-01-08 22:37 UTC] ajf@php.net
-Status: Open
+Status: Wont fix
[2015-01-08 22:37 UTC] ajf@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
Description: ------------ Currently PHP's FastCGI's code just keeps php loaded while the script is executed over and over every time. I'm proposing a system where fastcgi could be natively used by the php script. Like how fastcgi is used in perl, or C. The code could possibly look something like this: ------------------ #!/usr/bin/php-fastcgi <?php do_init(); while(fastcgi_next_request() != null) { do_request_stuff(); } do_shutdown(); ?> ------------------ This would allow large scripts that load lots of data to keep them loaded and serve many requests. This would be very advantagous for performance. The script itself would look like a fastcgi script to the server. Not the php executable. So you wouldn't be able to use the apache Action directive. You'd just need to have the hash-bang in every php file. I'm not familiar enough with php's sapi, nor fastcgi. But from what I know it should be possible if you don't use treat the php _script_ as a cgi and use the hash-bang on every file. Thanks, James Harr