Bug #63612 [Fbk->NoF]: Line numbers not generated correctly without curly braces
Edit report at https://bugs.php.net/bug.php?id=63612&edit=1
ID: 63612
Updated by: php-bugs@lists.php.net
Reported by: dave at behance dot com
Summary: Line numbers not generated correctly without curly
braces
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: *
PHP Version: 5.*
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2021-02-23 15:46:40] cmb@php.net
It seems to me that has been resolved in the meantime[1], or is
this still an issue with any of the actively supported PHP
versions[2]?
[1] <https://3v4l.org/sKEMg/vld#output>
[2] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2014-08-24 13:05:42] Aving426 at armyspy dot com
This bug happens on all major OSs (MacOS X, Windows, various Linux distribtions) and is independent
from the PHP version (5.3 up to 5.6).
So PHP Version and OS should be set to Irrelevant.
------------------------------------------------------------------------
[2014-01-12 17:48:19] derick@php.net
This is not an Xdebug issue, but a PHP scripting engine one.
------------------------------------------------------------------------
[2012-11-26 21:54:23] dave at behance dot com
Just tested on 5.4.6-2 and behavior appears to be the same
------------------------------------------------------------------------
[2012-11-26 15:40:50] dave at behance dot com
Description:
------------
While using Xdebug I noticed that it would say I had code coverage for lines that
I did not. After some digging in their bug tracker I found that it appears to be
due to a bug here. If there is an if statement without curly braces, it will not
report two lines as such.
I saw issue #57110, but it looks like the guy didn't find out the actual reason
xdebug wasn't working so it was marked as "not a bug"
Test script:
---------------
// Upon compiling it will only show one line
if ( false )
echo "Hit this line"
Or even better...
http://bugs.xdebug.org/view.php?id=842
Expected result:
----------------
I expect it to count as two separate lines since there's an actual linebreak.
Actual result:
--------------
It only counts one line internally
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63612&edit=1
Thread (6 messages)