#36834 [Opn->Fbk]: __LINE__ give wrong values
| From: | tony2001@php.net | Date: | Thu, 23 Mar 2006 13:37:07 +0000 |
| Subject: | #36834 [Opn->Fbk]: __LINE__ give wrong values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94813@lists.php.net to get a copy of this message | ||
ID: 36834
Updated by: tony2001@php.net
Reported By: trani at softwareplanet dot net
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: All
PHP Version: 4.4.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-03-23 14:35:35] trani at softwareplanet dot net
Description:
------------
__LINE__ gives wrong results when between there is some text inside
<<<LABEL
....
LABEL;
Biggest problem is thath DBG doens't works well in this case.
In the past this bug had been corrected, now there is again.
Reproduce code:
---------------
<?php
echo __LINE__."<br>";
echo <<<TEXT
bla bla
bla bla<br>
TEXT;
echo __LINE__."<br>";
?>
Expected result:
----------------
2
bla bla bla bla
7
Actual result:
--------------
2
bla bla bla bla
8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36834&edit=1