1
0
Fork 0

avoid bogus warning for fcgi

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@975 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2012-07-14 04:28:26 +00:00
parent f8d40fbf1e
commit 5aa5f6ee66
1 changed files with 2 additions and 2 deletions

View File

@ -3851,9 +3851,9 @@ static PHP_MINIT_FUNCTION(xcache)
#endif
REGISTER_INI_ENTRIES();
if (strcmp(sapi_module.name, "cgi-fcgi") == 0) {
if (strcmp(sapi_module.name, "cgi-fcgi") == 0 && !sapi_module.additional_functions && !getenv("XCACHE_SKIP_FCGI_WARNING") && !getenv("GATEWAY_INTERFACE")) {
if ((getenv("PHP_FCGI_CHILDREN") == NULL) || (atoi(getenv("PHP_FCGI_CHILDREN")) < 1)) {
zend_error(E_ERROR, "PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. See " XCACHE_WIKI_URL "/Faq");
zend_error(E_WARNING, "PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. Set XCACHE_SKIP_FCGI_WARNING=1 to skip this warning. See " XCACHE_WIKI_URL "/Faq");
}
}