Bug #78602 [Opn]: declare on same line as opening tag causes a one line offset
| From: | derick@php.net | Date: | Mon, 20 Jan 2020 17:13:40 +0000 |
| Subject: | Bug #78602 [Opn]: declare on same line as opening tag causes a one line offset | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225009@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78602&edit=1
ID: 78602
Updated by: derick@php.net
Reported by: jasny@php.net
Summary: declare on same line as opening tag causes a one
line offset
Status: Open
Type: Bug
-Package: Xdebug
+Package: *General Issues
Operating System: Linux
PHP Version: 7.2.23
Block user comment: N
Private report: N
New Comment:
I can't reproduce this with this little information. But if line numbers are wrong, that's
not something Xdebug can fix as it is information provided by the PHP engine
Previous Comments:
------------------------------------------------------------------------
[2019-09-27 15:25:27] cmb@php.net
I suggest to report Xdebug related issues on <https://bugs.xdebug.org/my_view_page.php>.
------------------------------------------------------------------------
[2019-09-27 13:02:10] jasny@php.net
Description:
------------
Code coverage by PHPUnit, stopping on breakpoints, etc all have an offset of 1 line when putting
declare(strict_types=1); on the same line as the opening tag.
Test script:
---------------
<?php declare(strict_types=1);
hello();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78602&edit=1