View Revisions: Issue #1760

Summary 0001760: xdebug appears the line that's not exist at all
Revision 2020-03-12 14:12 by derick
Description i'm using xdebug to collect coverage data from a web framework CodeIgniter ,but somethind weird happen, the coverage data contains lines that the file could never have, like the autoload.php

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitb2b31c9dfea89a8b6a59f8b59f651b1a::getLoader();


and the coverage data is this:

"share/php/framework/system/vendor/autoload.php":{"5":1,"7":1,"8":-2,"23":1}

 the file autload.php only has 8 line ,so line 23 comes out of where?

and the 23 can always appear with specific request

i'mt sorry that the php framework code is too large to bring out and i cant give a small sample file to test
Revision 2020-03-12 03:54 by jwos
Description i'm using xdebug to collect coverage data from a web framework CodeIgniter ,but somethind weird happen, the coverage data contains lines that the file could never have, like the autoload.php

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitb2b31c9dfea89a8b6a59f8b59f651b1a::getLoader();

and the coverage data is this:

"share/php/framework/system/vendor/autoload.php":{"5":1,"7":1,"8":-2,"23":1}

 the file autload.php only has 8 line ,so line 23 comes out of where?

and the 23 can always appear with specific request

i'mt sorry that the php framework code is too large to bring out and i cant give a small sample file to test