开发者

php - any way to do "real" fascgi?

开发者 https://www.devze.com 2023-04-01 02:36 出处:网络
I have been using perl and ruby in a fcgi setting and was planning to migrate a large code base of php from mod_php to fcgi, I looked at the php site and saw they supported fcgi and 5.3 has fpm to imp

I have been using perl and ruby in a fcgi setting and was planning to migrate a large code base of php from mod_php to fcgi, I looked at the php site and saw they supported fcgi and 5.3 has fpm to improve the ease of use of fcgi but I was unable to find any examples of the event loop in php - I thought I will look for that later... Well, now it is later and I am freaking out because I assumed fcgi was fcgi then I read this:

http://blog.milkfarmsoft.com/2006/06/fastcgi-in-php-the-way-it-could-be/

"PHP’s fastcgi SAPI doesn’t expose runloop to the PHP application,but implements it inside of itself,instead. As a result,we still have “everything is cleaned up on exit”mode,which leaves us without possibility to pre-init anything."

omfg :(

The site gets several millio开发者_如何学Cn page views per day and the rewrite to fcgi was supposed to save millions of php and mysql opens/lib set ups and memcache opens, etc.

Is there any way to do "real" fcgi with php? Thanks in advance for any ideas.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号