On Thu, 2 Dec 2004, Michiel Rook wrote:
> I have, however, another XDEBUG_CC_UNUSED related nag for you :)
> The following code:
>
> <?
> xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
> class b
> {
> function a()
> {
> return NULL;
> }
> };
> $cc = xdebug_get_code_coverage();
> xdebug_stop_code_coverage();
> var_dump($cc);
> ?>
>
> Produces:
>
> array(1) {
> ["/var/www/experiment/xdebug_cc.php"]=>
> array(2) {
> [4]=>
> int(1)
> [10]=>
> int(1)
> }
> }
>
> Is this simply a case of missing opcode overrides? (By the way, the
> class starting on line 4 instead of 3 is probably a PHP bug, as I've
> seen this in their Reflection API as well, it does work when "b" is a
> subclass of another class)
Hmm, I don't see why the array above is wrong (except for the 3/4 line
no thing). Can you explain?
regards,
Derick
-- Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.orgReceived on Sat Dec 04 2004 - 23:26:17 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST