Browse Source

avoid zend_alter_ini_entry which is execute time

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@827 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
6fbbefbafc
  1. 2
      xcache.c

2
xcache.c

@ -3526,7 +3526,7 @@ static PHP_MINIT_FUNCTION(xcache)
if (strcmp(sapi_module.name, "cli") == 0) {
if ((env = getenv("XCACHE_TEST")) != NULL) {
zend_alter_ini_entry("xcache.test", sizeof("xcache.test"), env, strlen(env) + 1, PHP_INI_SYSTEM, PHP_INI_STAGE_STARTUP);
xc_test = atoi(env);
}
if (!xc_test) {
/* disable cache for cli except for testing */

Loading…
Cancel
Save