1
0
Fork 0

trunk: fixed #48, was leaking info when cacher is not enabled by size

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@279 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 2006-11-19 01:47:38 +00:00
parent 59d3ec0a3d
commit b074ef2c25
1 changed files with 4 additions and 5 deletions

View File

@ -1581,13 +1581,12 @@ static void xcache_admin_operate(xcache_op_type optype, INTERNAL_FUNCTION_PARAME
xc_cache_t **caches, *cache;
long id = 0;
if (!xc_initized) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "XCache is not initized");
RETURN_FALSE;
}
xcache_admin_auth_check(TSRMLS_C);
if (!xc_initized) {
RETURN_NULL();
}
if (optype == XC_OP_COUNT) {
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &type) == FAILURE) {
return;