The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000348
======================================================================
Reporter: Abalam
Handler:
======================================================================
Project: Xdebug
Bug ID: 348
Category: Usage problems
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Operating System:
PHP Version: 5.2.5
Xdebug Version: 2.0.2
======================================================================
Date Submitted: 2008-01-14 23:49 CET
Last Modified: 2008-01-14 23:49 CET
======================================================================
Summary: Wrong count of code coverage dead code (not executed lines) with Xdebug 2.0.2
Description:
I've 4 Gentoo servers, all have the same configuration.
I've isolated the test with only 2 PHP files :
toto.php :
<?
class bobi {
function bordel() {
echo 'ah';
// hop
echo "toto";
}
}
?>
And cover.php :
<?
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
require_once 'toto.php';
print_r(xdebug_get_code_coverage());
xdebug_stop_code_coverage();
//phpinfo();
die();
?>
When i try :
php ./cover.php
I've this result on 3 servers :
Array
(
[/home/user/toto.php] => Array
(
[3] => 1
[5] => -1
[9] => -1
[10] => -1
[14] => 1
)
[/home/user/cover.php] => Array
(
[4] => 1
[6] => 1
)
)
But on the fourth i've a wrong result :
Array
(
[/home/user/toto.php] => Array
(
[3] => 1
[13] => 1
)
[/home/user/cover.php] => Array
(
[4] => 1
[6] => 1
)
)
======================================================================
Bug History
Date Modified Username Field Change
======================================================================
2008-01-14 23:49Abalam New Bug
2008-01-14 23:49Abalam Bug Monitored: Abalam
======================================================================
Received on Mon Jan 14 2008 - 23:49:18 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST