Changeset 3225
- Timestamp:
- 01/11/07 09:45:41 (6 years ago)
- Files:
-
- tools/lime/lib/lime.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/lib/lime.php
r3222 r3225 603 603 include('$file'); 604 604 ob_end_clean(); 605 echo serialize(xdebug_get_code_coverage());605 echo '<PHP_SER>'.serialize(xdebug_get_code_coverage()).'</PHP_SER>'; 606 606 EOF; 607 607 file_put_contents($tmp_file, $tmp); … … 611 611 if (0 == $return) 612 612 { 613 if (false === $cov = unserialize( $retval))613 if (false === $cov = unserialize(substr($retval, strpos($retval, '<PHP_SER>') + 9, strpos($retval, '</PHP_SER>') - 9))) 614 614 { 615 615 throw new Exception(sprintf('Unable to unserialize coverage for file "%s"', $file)); … … 663 663 static function get_php_lines($content) 664 664 { 665 if (is_ readable($content))665 if (is_file($content)) 666 666 { 667 667 $content = file_get_contents($content);