Bug #78679 [Com]: Case lines are not covered

From: Date: Fri, 18 Oct 2019 06:56:06 +0000
Subject: Bug #78679 [Com]: Case lines are not covered
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223232@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78679&edit=1

 ID:                 78679
 Comment by:         672457459 at qq dot com
 Reported by:        jking at jkingweb dot ca
 Summary:            Case lines are not covered
 Status:             Open
 Type:               Bug
 Package:            phpdbg
 Operating System:   Linux
 PHP Version:        7.3.10
 Block user comment: N
 Private report:     N

 New Comment:

提交一个bug谢谢


Previous Comments:
------------------------------------------------------------------------
[2019-10-17 14:22:18] jking at jkingweb dot ca

Description:
------------
The accompanying test script would previously (prior to PHP 7.2) output coverage for all lines
except 1 and 6. Now line 4 is also not covered. Xdebug considered this behaviour a bug and fixed it
(see https://bugs.xdebug.org/view.php?id=1509) for
Xdebug.

Test script:
---------------
<?php
phpdbg_start_oplog();
switch (true) {
    case true:
        break;
}
var_dump(phpdbg_get_executable());

Expected result:
----------------
array (
  'test.php' => 
  array (
    2 => 0,
    3 => 0,
    4 => 0,
    5 => 0,
    7 => 0,
  ),
)

Actual result:
--------------
array (
  'test.php' => 
  array (
    2 => 0,
    3 => 0,
    5 => 0,
    7 => 0,
  ),
)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78679&edit=1


Thread (3 messages)

« previous php.bugs (#223232) next »