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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jking at jkingweb dot ca
New email:
PHP Version: OS:

 

 [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谢谢
 [2023-06-02 10:08 UTC] wqwret433 at gmail dot com
That was so amazingly. (https://www.ballsportspro.com/can-you-toss-the-ball-up-when-serving-in-pickleball/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC