#28643 [Opn->Fbk]: __LINE__ miscounts by several lines [script without a # sign at the top]
| From: | derick@php.net | Date: | Sat, 05 Jun 2004 14:24:49 +0000 |
| Subject: | #28643 [Opn->Fbk]: __LINE__ miscounts by several lines [script without a # sign at the top] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60401@lists.php.net to get a copy of this message | ||
ID: 28643
Updated by: derick@php.net
Reported By: s at vtit dot kuzstu dot ru
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: possibly any
PHP Version: Irrelevant
New Comment:
The URLs you provided don't work (can't be resolved).
Previous Comments:
------------------------------------------------------------------------
[2004-06-05 16:06:11] s at vtit dot kuzstu dot ru
Description:
------------
While debugging and getting some error I receive the error in wrong
line number. I suppose strict errors, not like a missing bracket or
something like that. For example unknown method, variable and something
like that. So, line number can be defined surely. After than I've
played with __LINE__ and I've got a result. It reported some strange
number of line. I suppose it's linked to CR, LF: i can reproduce this
bug hard ;) So, the url is included in bugreport. Good luck. I had this
bug before and find it very annoying. Some replics of others in the
Internet doesn't answer at all.
P.S. Script doesn't have a # sign at the top.
Reproduce code:
---------------
The page with links to 2 tests and 2 source codes:
http://key.users.kemcity.ru/
Direct Links
Test1:
http://key.users.kemcity.ru/index1.php
Test2:
http://key.users.kemcity.ru/index2.php
Source Code
Source1:
http://key.users.kemcity.ru/index1.txt
Source2:
http://key.users.kemcity.ru/index2.txt
Expected result:
----------------
Test1:
Does 10=10? [/www/htdocs/users/homepage/key/index1.php]
Test2:
Does 7=7? [/www/htdocs/users/homepage/key/index2.php]
Actual result:
--------------
Test1:
Does 4=10? [/www/htdocs/users/homepage/key/index1.php]
Test2:
Does 4=7? [/www/htdocs/users/homepage/key/index2.php]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28643&edit=1