Development

Changeset 3225

You must first sign up to be able to contribute.

Changeset 3225

Show
Ignore:
Timestamp:
01/11/07 09:45:41 (1 year ago)
Author:
fabien
Message:

lime: fixed coverage bug on windows + fixed problem with PHP 5.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/lib/lime.php

    r3222 r3225  
    603603include('$file'); 
    604604ob_end_clean(); 
    605 echo serialize(xdebug_get_code_coverage())
     605echo '<PHP_SER>'.serialize(xdebug_get_code_coverage()).'</PHP_SER>'
    606606EOF; 
    607607      file_put_contents($tmp_file, $tmp); 
     
    611611      if (0 == $return) 
    612612      { 
    613         if (false === $cov = unserialize($retval)) 
     613        if (false === $cov = unserialize(substr($retval, strpos($retval, '<PHP_SER>') + 9, strpos($retval, '</PHP_SER>') - 9))) 
    614614        { 
    615615          throw new Exception(sprintf('Unable to unserialize coverage for file "%s"', $file)); 
     
    663663  static function get_php_lines($content) 
    664664  { 
    665     if (is_readable($content)) 
     665    if (is_file($content)) 
    666666    { 
    667667      $content = file_get_contents($content);