Edit report at https://bugs.php.net/bug.php?id=63612&edit=1

 ID:                 63612
 User updated by:    dave at behance dot com
 Reported by:        dave at behance dot com
 Summary:            Line numbers not generated correctly without curly
                     braces
 Status:             Open
 Type:               Bug
 Package:            Testing related
 Operating System:   Ubuntu
 PHP Version:        5.3.19
 Block user comment: N
 Private report:     N

 New Comment:

Just tested on 5.4.6-2 and behavior appears to be the same


Previous Comments:
------------------------------------------------------------------------
[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

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to