diff options
author | knut <> | 2008-08-06 01:34:06 +0000 |
---|---|---|
committer | knut <> | 2008-08-06 01:34:06 +0000 |
commit | f7f3d150ef35c026bf6aee72e78362e263419e1a (patch) | |
tree | 6e060c20928f46a801e2087459a10958bf529685 /framework/Caching | |
parent | 637d5678be83c5fae1b21848d53e4d90bd5c0b0d (diff) |
fixed #898
Diffstat (limited to 'framework/Caching')
-rw-r--r-- | framework/Caching/TXCache.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Caching/TXCache.php b/framework/Caching/TXCache.php index f3163618..96e50acb 100644 --- a/framework/Caching/TXCache.php +++ b/framework/Caching/TXCache.php @@ -4,7 +4,7 @@ *
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id: TXCache.php 1994 2007-06-11 16:02:28Z knut $
* @package System.Caching
@@ -54,8 +54,8 @@ class TXCache extends TCache if(!function_exists('xcache_isset'))
throw new TConfigurationException('xcache_extension_required');
- $enabled = intval(ini_get('xcache.cacher')) !== 0;
- $var_size = intval(ini_get('xcache.var_size'));
+ $enabled = (int)ini_get('xcache.cacher') !== 0;
+ $var_size = (int)ini_get('xcache.var_size');
if(!($enabled && $var_size > 0))
throw new TConfigurationException('xcache_extension_not_enabled');
@@ -123,4 +123,4 @@ class TXCache extends TCache }
}
-?> +?>
|