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.
精彩评论