summaryrefslogtreecommitdiff
path: root/framework/Caching/TXCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Caching/TXCache.php')
-rw-r--r--framework/Caching/TXCache.php8
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 &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 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
}
}
-?>
+?>