php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36834 __LINE__ give wrong values
Submitted: 2006-03-23 14:35 UTC Modified: 2006-03-31 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: trani at softwareplanet dot net Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.4.2 OS: All
Private report: No CVE-ID: None
 [2006-03-23 14:35 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-31 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC