php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78679 Case lines are not covered
Submitted: 2019-10-17 14:22 UTC Modified: -
From: jking at jkingweb dot ca Assigned:
Status: Open Package: phpdbg
PHP Version: 7.3.10 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-10-17 14:22 UTC] 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,
  ),
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-18 06:56 UTC] 672457459 at qq dot com
提交一个bug谢谢
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 02:01:24 2019 UTC