Changeset 974 for trunk/xcache.c


Ignore:
Timestamp:
2012-07-14T05:53:25+02:00 (21 months ago)
Author:
moo
Message:

fixes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r972 r974  
    38523852    REGISTER_INI_ENTRIES(); 
    38533853 
     3854    if (strcmp(sapi_module.name, "cgi-fcgi") == 0) { 
     3855        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"); 
     3857        } 
     3858    } 
     3859 
    38543860    xc_config_long(&xc_php_size,       "xcache.size",        "0"); 
    38553861    xc_config_hash(&xc_php_hcache,     "xcache.count",       "1"); 
Note: See TracChangeset for help on using the changeset viewer.