php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78602 declare on same line as opening tag causes a one line offset
Submitted: 2019-09-27 13:02 UTC Modified: 2020-01-20 17:13 UTC
From: jasny@php.net Assigned:
Status: Open Package: *General Issues
PHP Version: 7.2.23 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-09-27 13:02 UTC] 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();



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-27 15:25 UTC] cmb@php.net
I suggest to report Xdebug related issues on <https://bugs.xdebug.org/my_view_page.php>.
 [2020-01-20 17:13 UTC] derick@php.net
-Package: Xdebug +Package: *General Issues
 [2020-01-20 17:13 UTC] derick@php.net
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
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 14:01:25 2020 UTC