Changeset 975 in svn


Ignore:
Timestamp:
2012-07-14T04:28:26Z (3 years ago)
Author:
Xuefer
Message:

avoid bogus warning for fcgi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r974 r975  
    38523852    REGISTER_INI_ENTRIES();
    38533853
    3854     if (strcmp(sapi_module.name, "cgi-fcgi") == 0) {
     3854    if (strcmp(sapi_module.name, "cgi-fcgi") == 0 && !sapi_module.additional_functions && !getenv("XCACHE_SKIP_FCGI_WARNING") && !getenv("GATEWAY_INTERFACE")) {
    38553855        if ((getenv("PHP_FCGI_CHILDREN") == NULL) || (atoi(getenv("PHP_FCGI_CHILDREN")) < 1)) {
    3856             zend_error(E_ERROR, "PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. See " XCACHE_WIKI_URL "/Faq");
     3856            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");
    38573857        }
    38583858    }
Note: See TracChangeset for help on using the changeset viewer.