Bug #63612 [NEW]: Line numbers not generated correctly without curly braces
| From: | dave at behance dot com | Date: | Mon, 26 Nov 2012 15:40:51 +0000 |
| Subject: | Bug #63612 [NEW]: Line numbers not generated correctly without curly braces | ||
| Groups: | php.bugs php.qa | ||
| Request: | Send a blank email to php-bugs+get-174945@lists.php.net to get a copy of this message | ||
From: dave at behance dot com
Operating system: Ubuntu
PHP version: 5.3.19
Package: Testing related
Bug Type: Bug
Bug description:Line numbers not generated correctly without curly braces
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 bug report at https://bugs.php.net/bug.php?id=63612&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63612&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63612&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63612&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63612&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63612&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63612&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63612&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63612&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63612&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63612&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63612&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63612&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63612&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63612&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63612&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63612&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63612&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63612&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63612&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63612&r=mysqlcfg