Changeset 240 for branches/1.0
- Timestamp:
- 10/11/2006 05:42:41 AM (2 years ago)
- Location:
- branches/1.0
- Files:
-
- 4 modified
-
coverager.c (modified) (1 diff)
-
coverager/config.php.example (modified) (1 diff)
-
coverager/coverager.php (modified) (2 diffs)
-
coverager/coverager.tpl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/coverager.c
r51 r240 234 234 zend_hash_move_forward(XG(coverages)); 235 235 } 236 efree(outfilename); 236 237 } 237 238 -
branches/1.0/coverager/config.php.example
r33 r240 13 13 function ob_filter_path_nicer($o) 14 14 { 15 $o = str_replace("/home/", "{H}/", $o); 15 $sep = DIRECTORY_SEPARATOR; 16 $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}$sep", $o); 17 $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); 18 $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); 19 if ($sep == '/') { 20 $o = str_replace("/home/", "{H}/", $o); 21 } 16 22 return $o; 17 23 } -
branches/1.0/coverager/coverager.php
r33 r240 58 58 $this->path = isset($_GET['path']) ? $_GET['path'] : ''; 59 59 $this->path = preg_replace('!\.{2,}!', '.', $this->path); 60 $this->path = preg_replace('![\\\\/]{2,}!', '/', $this->path); 60 $qsep = preg_quote(DIRECTORY_SEPARATOR, '!'); 61 $this->path = preg_replace("![\\\\$qsep]{2,}!", DIRECTORY_SEPARATOR, $this->path); 62 $this->path = preg_replace("!$qsep$!", '', $this->path); 61 63 if ($this->path == '/') { 62 64 $this->path = ''; … … 114 116 list($tplfile, $tpllines, $tplcov) = $this->loadTplCov($fileinfo['cov'], substr($this->outpath, $this->datadir_len)); 115 117 if ($tplfile) { 116 $tplcov = sprint_cov($tpl info['tplcov'], $tpllines);118 $tplcov = sprint_cov($tplcov, $tpllines); 117 119 unset($tpllines); 118 120 } -
branches/1.0/coverager/coverager.tpl.php
r33 r240 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 <meta http-equiv="Content-Language" content="en-us" />5 4 <?php 6 5 echo <<<HEAD … … 61 60 global $cycle; 62 61 if ($info['files'] || $info['todos']) { 62 $srcdir .= DIRECTORY_SEPARATOR; 63 63 $c = $cycle->next(); 64 64 $srcdir_html = htmlspecialchars($srcdir);

