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
 [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

Pull Requests

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: Mon Dec 30 14:01:28 2024 UTC