1
0
Fork 0

fixes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@974 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-07-14 03:53:25 +00:00
parent 7fa7675bf4
commit f8d40fbf1e
3 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2.1.0 2012-??-??
* fixes #972: warning/error when XCache is loaded incorrectly
* fixes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode
2.0.1 2012-07-14
ChangeLog

1
NEWS
View File

@ -1,6 +1,7 @@
2.1.0 2012-??-??
========
* improvements
* adds warning for misconfiguration
2.0.1 2012-07-14
========

View File

@ -3851,6 +3851,12 @@ static PHP_MINIT_FUNCTION(xcache)
#endif
REGISTER_INI_ENTRIES();
if (strcmp(sapi_module.name, "cgi-fcgi") == 0) {
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");
}
}
xc_config_long(&xc_php_size, "xcache.size", "0");
xc_config_hash(&xc_php_hcache, "xcache.count", "1");
xc_config_hash(&xc_php_hentry, "xcache.slots", "8K");