Index: /branches/1.3/Makefile.frag
===================================================================
--- /branches/1.3/Makefile.frag	(revision 595)
+++ /branches/1.3/Makefile.frag	(revision 596)
@@ -41,3 +41,3 @@
 	TEST_PHP_SRCDIR=$(top_srcdir) \
 	CC="$(CC)" \
-		$(srcdir)/run-xcachetest -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS) -c $(srcdir)/xcache-test.ini
+		$(srcdir)/run-xcachetest -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS) $(TEST_ARGS) -c $(srcdir)/xcache-test.ini
Index: /branches/1.3/admin/common-zh-simplified-utf-8.lang.php
===================================================================
--- /branches/1.3/admin/common-zh-simplified-utf-8.lang.php	(revision 595)
+++ /branches/1.3/admin/common-zh-simplified-utf-8.lang.php	(revision 596)
@@ -51,4 +51,6 @@
 		'Refcount'
 		=> '引用数',
+		'PhpShared'
+		=> '共享',
 		'SrcSize'
 		=> '源大小',
Index: /branches/1.3/admin/common-zh-traditional-utf-8.lang.php
===================================================================
--- /branches/1.3/admin/common-zh-traditional-utf-8.lang.php	(revision 595)
+++ /branches/1.3/admin/common-zh-traditional-utf-8.lang.php	(revision 596)
@@ -51,4 +51,6 @@
 		'Refcount'
 		=> '引用數',
+		'PhpShared'
+		=> '共享',
 		'SrcSize'
 		=> '原始檔案大小',
Index: /branches/1.3/admin/help-en.lang.php
===================================================================
--- /branches/1.3/admin/help-en.lang.php	(revision 595)
+++ /branches/1.3/admin/help-en.lang.php	(revision 596)
@@ -23,6 +23,7 @@
 <dt><?php echo _T('entry'); ?>: </dt><dd>The entry name or filename</dd>
 <dt><?php echo _T('Hits'); ?>: </dt><dd>Times this entry is hit (loaded from this cache)</dd>
-<dt><?php echo _T('Refcount'); ?>: </dt><dd>Reference count this entry is holded by a php request</dd>
+<dt><?php echo _T('Refcount'); ?>: </dt><dd>Reference count of this entry is holded by a php request</dd>
 <dt><?php echo _T('Size'); ?>: </dt><dd>Size in bytes of this entry in the cache</dd>
+<dt><?php echo _T('PhpShared'); ?>: </dt><dd>Count of entry sharing this php data</dd>
 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>Size of the source file</dd>
 <dt><?php echo _T('Modify'); ?>: </dt><dd>Last modified time of the source file</dd>
Index: /branches/1.3/admin/help-zh-simplified-utf-8.lang.php
===================================================================
--- /branches/1.3/admin/help-zh-simplified-utf-8.lang.php	(revision 595)
+++ /branches/1.3/admin/help-zh-simplified-utf-8.lang.php	(revision 596)
@@ -25,4 +25,5 @@
 <dt><?php echo _T('Refcount'); ?>: </dt><dd>项目依然被其他进程占据的引用次数</dd>
 <dt><?php echo _T('Size'); ?>: </dt><dd>项目在共享内存里占用字节数</dd>
+<dt><?php echo _T('PhpShared'); ?>: </dt><dd>与本项目相同 PHP 代码的个数</dd>
 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>源文件大小</dd>
 <dt><?php echo _T('Modify'); ?>: </dt><dd>源文件最后修改时间</dd>
Index: /branches/1.3/admin/help-zh-traditional-utf-8.lang.php
===================================================================
--- /branches/1.3/admin/help-zh-traditional-utf-8.lang.php	(revision 595)
+++ /branches/1.3/admin/help-zh-traditional-utf-8.lang.php	(revision 596)
@@ -25,4 +25,5 @@
 <dt><?php echo _T('Refcount'); ?>: </dt><dd>項目依然被其他程序佔用的引用次數</dd>
 <dt><?php echo _T('Size'); ?>: </dt><dd>項目在共享記憶體裡佔用位元數</dd>
+<dt><?php echo _T('PhpShared'); ?>: </dt><dd>與本項目相同 PHP 內容的个數</dd>
 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>原始檔案大小</dd>
 <dt><?php echo _T('Modify'); ?>: </dt><dd>原始檔案最後修改時間</dd>
Index: /branches/1.3/admin/xcache.tpl.php
===================================================================
--- /branches/1.3/admin/xcache.tpl.php	(revision 595)
+++ /branches/1.3/admin/xcache.tpl.php	(revision 596)
@@ -148,4 +148,5 @@
 			echo '<col align="right" />';
 			echo '<col align="right" />';
+			echo '<col align="right" />';
 		}
 
@@ -163,4 +164,5 @@
 			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th>
 			<?php if ($isphp) { ?>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('PhpShared'); ?></a></th>
 			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th>
 			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th>
@@ -185,5 +187,6 @@
 			$size     = size($entry['size']);
 			if ($isphp) {
-				$sourcesize = size($entry['sourcesize']);
+				$sourcesize  = size($entry['sourcesize']);
+				$phprefcount = number_format($entry['phprefcount']);
 			}
 
@@ -217,4 +220,5 @@
 			if ($isphp) {
 				echo <<<ENTRY
+				<td int="{$entry['phprefcount']}">{$phprefcount}</td>
 				<td int="{$entry['sourcesize']}">{$sourcesize}</td>
 				<td int="{$entry['mtime']}">{$mtime}</td>
Index: /branches/1.3/xcache.c
===================================================================
--- /branches/1.3/xcache.c	(revision 595)
+++ /branches/1.3/xcache.c	(revision 596)
@@ -446,5 +446,4 @@
 	array_init(ei);
 
-	add_assoc_long_ex(ei, ZEND_STRS("size"),     entry->size);
 	add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry->refcount);
 	add_assoc_long_ex(ei, ZEND_STRS("hits"),     entry->hits);
@@ -477,4 +476,6 @@
 		case XC_TYPE_PHP:
 			php = entry->data.php;
+			add_assoc_long_ex(ei, ZEND_STRS("size"),          entry->size + php->size);
+			add_assoc_long_ex(ei, ZEND_STRS("phprefcount"),   php->refcount);
 			add_assoc_long_ex(ei, ZEND_STRS("sourcesize"),    php->sourcesize);
 #ifdef HAVE_INODE
@@ -493,6 +494,8 @@
 #endif
 			break;
+
 		case XC_TYPE_VAR:
 			var = entry->data.var;
+			add_assoc_long_ex(ei, ZEND_STRS("size"),          entry->size);
 			break;
 
