Index: /branches/1.2/xcache.c
===================================================================
--- /branches/1.2/xcache.c	(revision 453)
+++ /branches/1.2/xcache.c	(revision 457)
@@ -417,4 +417,5 @@
 	add_assoc_long_ex(return_value, ZEND_STRS("clogs"),     cache->clogs);
 	add_assoc_long_ex(return_value, ZEND_STRS("ooms"),      cache->ooms);
+	add_assoc_long_ex(return_value, ZEND_STRS("errors"),    cache->errors);
 
 	add_assoc_long_ex(return_value, ZEND_STRS("cached"),    cache->entries_count);
@@ -1162,4 +1163,5 @@
 	} LEAVE_LOCK(cache);
 	if (catched) {
+		cache->errors ++;
 		zend_bailout();
 	}
Index: /branches/1.2/xcache.h
===================================================================
--- /branches/1.2/xcache.h	(revision 445)
+++ /branches/1.2/xcache.h	(revision 457)
@@ -176,4 +176,5 @@
 	zend_ulong clogs;
 	zend_ulong ooms;
+	zend_ulong errors;
 	xc_lock_t  *lck;
 	xc_shm_t   *shm; /* to which shm contains us */
Index: /branches/1.2/admin/xcache.tpl.php
===================================================================
--- /branches/1.2/admin/xcache.tpl.php	(revision 373)
+++ /branches/1.2/admin/xcache.tpl.php	(revision 457)
@@ -35,4 +35,5 @@
 		<th><?php echo _T('Clogs'); ?></th>
 		<th><?php echo _T('OOMs'); ?></th>
+		<th><?php echo _T('Errors'); ?></th>
 		<th><?php echo _T('Protected'); ?></th>
 		<th><?php echo _T('Cached'); ?></th>
@@ -41,5 +42,5 @@
 	</tr>
 	<?php
-	$numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,cached,deleted');
+	$numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,errors,cached,deleted');
 	$l_clear = _T('Clear');
 	$l_clear_confirm = _T('Sure to clear?');
@@ -76,4 +77,5 @@
 		<td>{$ci['clogs']}</td>
 		<td>{$ci['ooms']}</td>
+		<td>{$ci['errors']}</td>
 		<td>{$ci['can_readonly']}</td>
 		<td>{$ci['cached']}</td>
Index: /branches/1.2/admin/help-zh-traditional-utf-8.lang.php
===================================================================
--- /branches/1.2/admin/help-zh-traditional-utf-8.lang.php	(revision 135)
+++ /branches/1.2/admin/help-zh-traditional-utf-8.lang.php	(revision 457)
@@ -11,4 +11,5 @@
 <dt><?php echo _T('Clogs'); ?>: </dt><dd>編譯阻塞跳過，阻塞=當需該共享記憶體區負責編譯時，其他程序/現成無法存取此共享記憶體. 跳過=XCache 自動判斷阻塞的共享記憶體區自動跳過阻塞等待，直接使用非共享記憶體方式繼續處理請求</dd>
 <dt><?php echo _T('OOMs'); ?>: </dt><dd>記憶體不足次數，顯示需要儲存新資料但是共享記憶體區記憶體不足的次數. 如果出現太頻繁請考慮加大配置中的 xcache.size 或者 xcache.var_size</dd>
+<dt><?php echo _T('Errors'); ?>: </dt><dd>编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
 <dt><?php echo _T('Protected'); ?>: </dt><dd>顯示該 Cache 是否支援並啟用 <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a></dd>
 <dt><?php echo _T('Cached'); ?>: </dt><dd>共享記憶體於該共享記憶體區的項目個數</dd>
Index: /branches/1.2/admin/common-zh-traditional-utf-8.lang.php
===================================================================
--- /branches/1.2/admin/common-zh-traditional-utf-8.lang.php	(revision 373)
+++ /branches/1.2/admin/common-zh-traditional-utf-8.lang.php	(revision 457)
@@ -34,4 +34,6 @@
 		'OOMs'
 		=> '記憶體不足',
+		'Errors'
+		=> '错误',
 		'Protected'
 		=> '保護',
Index: /branches/1.2/admin/help-en.lang.php
===================================================================
--- /branches/1.2/admin/help-en.lang.php	(revision 123)
+++ /branches/1.2/admin/help-en.lang.php	(revision 457)
@@ -11,4 +11,5 @@
 <dt><?php echo _T('Clogs'); ?>: </dt><dd>Compiling Clogs, clog=compiling is needed but avoided to wait(be blocked) when the cache is busy compiling already</dd>
 <dt><?php echo _T('OOMs'); ?>: </dt><dd>Out Of Memory, how many times a new item should be stored but there isn't enough memory in the cache, think of increasing the xcache.size or xcache.var_size</dd>
+<dt><?php echo _T('Errors'); ?>: </dt><dd>Compiler errors, how many times your script is compiled but failed. You should really check what is happening if you see this value increase. See <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
 <dt><?php echo _T('Protected'); ?>: </dt><dd>Whether <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a> is available and enable on this cache</dd>
 <dt><?php echo _T('Cached'); ?>: </dt><dd>Number of entries stored in this cache</dd>
Index: /branches/1.2/admin/common-zh-simplified-utf-8.lang.php
===================================================================
--- /branches/1.2/admin/common-zh-simplified-utf-8.lang.php	(revision 373)
+++ /branches/1.2/admin/common-zh-simplified-utf-8.lang.php	(revision 457)
@@ -34,4 +34,6 @@
 		'OOMs'
 		=> '内存不足',
+		'Errors'
+		=> '错误',
 		'Protected'
 		=> '保护',
Index: /branches/1.2/admin/help-zh-simplified-utf-8.lang.php
===================================================================
--- /branches/1.2/admin/help-zh-simplified-utf-8.lang.php	(revision 123)
+++ /branches/1.2/admin/help-zh-simplified-utf-8.lang.php	(revision 457)
@@ -11,4 +11,5 @@
 <dt><?php echo _T('Clogs'); ?>: </dt><dd>编译阻塞跳过, 阻塞=当需该共享内存区负责编译时, 其他进程/现成无法访问此共享内存. 跳过=XCache 自动判断阻塞的共享内存区自动跳过阻塞等待, 直接使用非共享内存方式继续处理请求</dd>
 <dt><?php echo _T('OOMs'); ?>: </dt><dd>内存不足次数, 显示需要存储新数据但是共享内存区内存不足的次数. 如果出现太频繁请考虑加大配置中的 xcache.size 或者 xcache.var_size</dd>
+<dt><?php echo _T('Errors'); ?>: </dt><dd>编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 <a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
 <dt><?php echo _T('Protected'); ?>: </dt><dd>显示该 Cache 是否支持并启用 <a href="http://trac.lighttpd.net/xcache/wiki/ReadonlyProtection">readonly_protection</a></dd>
 <dt><?php echo _T('Cached'); ?>: </dt><dd>共享内存于该共享内存区的项目条数</dd>
