Bug #78602 [Opn->Fbk]: declare on same line as opening tag causes a one line offset

From: Date: Fri, 18 Dec 2020 13:12:29 +0000
Subject: Bug #78602 [Opn->Fbk]: 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-231151@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:         cmb@php.net
 Reported by:        jasny@php.net
 Summary:            declare on same line as opening tag causes a one
                     line offset
-Status:             Open
+Status:             Feedback
 Type:               Bug
-Package:            *General Issues
+Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        7.2.23
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2020-01-20 17:13:40] 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

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


Thread (1 message)

  • cmb@php.net
  • Unknown Message
    • cmb@php.net
« previous php.bugs (#231151) next »