Changeset 974


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

fixes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r973 r974  
    112.1.0 2012-??-?? 
    22 * fixes #972: warning/error when XCache is loaded incorrectly 
     3 * fixes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode 
    34 
    452.0.1 2012-07-14 
  • trunk/NEWS

    r973 r974  
    22======== 
    33 * improvements 
     4 * adds warning for misconfiguration 
    45 
    562.0.1 2012-07-14 
  • 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.