Changeset 183
- Timestamp:
- 09/19/2006 12:30:08 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/coverager/coverager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager/coverager.php
r174 r183 131 131 } 132 132 133 $xcache_version = XCACHE_VERSION;133 $xcache_version = defined('XCACHE_VERSION') ? XCACHE_VERSION : ''; 134 134 include("coverager.tpl.php"); 135 135 } … … 310 310 return implode('', $lines); 311 311 } 312 if (!function_exists('xcache_coverager_decode')) { 313 function xcache_coverager_decode($bytes) 314 { 315 $bytes = unpack('l*', $bytes); 316 $i = 1; 317 if ($bytes[$i ++] != 0x564f4350) { 318 return null; 319 } 320 $end = count($bytes); 321 $cov = array(); 322 for (/* empty*/; $i <= $end; $i += 2) { 323 $cov[$bytes[$i]] = $bytes[$i + 1]; 324 } 325 return $cov; 326 } 327 } 312 328 313 329 $app = new XcacheCoverageViewer();

