Req #24590 [Opn->Wfx]: True FastCGI support

From: Date: Thu, 08 Jan 2015 22:37:13 +0000
Subject: Req #24590 [Opn->Wfx]: True FastCGI support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189761@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=24590&edit=1

 ID:                 24590
 Updated by:         ajf@php.net
 Reported by:        james at grickel dot org
 Summary:            True FastCGI support
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            CGI/CLI related
 Operating System:   *
 PHP Version:        *
 Block user comment: N
 Private report:     N

 New Comment:

PHP's shared-nothing architecture isn't going to change any time soon.

If you want performance, use an opcache.


Previous Comments:
------------------------------------------------------------------------
[2003-12-09 01:31:48] james at grickel dot org

Would it be possible to implement this easily through an extension? It'd probably be a good
idea to work on this in PHP5 since PHP5 is almost out and it woudl be easier to integrate.

Who's interested in this?

------------------------------------------------------------------------
[2003-08-09 15:23:33] dpenning at s0nix dot de

imho this should be implemented as an php-extension.
then the user would have to run the script via php-cli

------------------------------------------------------------------------
[2003-07-10 10:19:33] james at grickel dot org

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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=24590&edit=1


Thread (4 messages)

« previous php.bugs (#189761) next »