|
Last change
on this file since 240 was
240,
checked in by moo, 7 years ago
|
|
trunk->1.0: merged coverager
- [184] fix tplcov
- [176] leaked by outfilename (efree by zend_mm tho)
- [175] remove double Content-Language
- [174] avoid double slash
- [173] make dir ended with dir sep
- [172] DIRECTORY_SEPARATOR for coverager config example
|
|
File size:
630 bytes
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | // should be named as config.php |
|---|
| 4 | |
|---|
| 5 | $charset = "UTF-8"; |
|---|
| 6 | // $include_paths = array("/www/my-php-project/"); |
|---|
| 7 | // $exclude_paths = array("/www/my-php-project/tmp/"); |
|---|
| 8 | $syntaxhiglight = true; |
|---|
| 9 | $usecache = false; |
|---|
| 10 | //// $datadir is default to ini_get("xcache.coveragedump_directory") |
|---|
| 11 | // $datadir = ''; |
|---|
| 12 | |
|---|
| 13 | function ob_filter_path_nicer($o) |
|---|
| 14 | { |
|---|
| 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 | } |
|---|
| 22 | return $o; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.