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-12-27 04:22 UTC
From: jasny@php.net Assigned: cmb (profile)
Status: No Feedback Package: Scripting Engine problem
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
 [2020-12-18 13:12 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: *General Issues +Package: Scripting Engine problem -Assigned To: +Assigned To: cmb
 [2020-12-18 13:12 UTC] cmb@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

I cannot reproduce either: <https://3v4l.org/0A73d>.
 [2020-12-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Mar 05 14:01:23 2021 UTC