#21938 [Com]: Wrong error line numbers
| From: | duerra at yahoo dot com | Date: | Tue, 08 Apr 2003 19:39:34 +0000 |
| Subject: | #21938 [Com]: Wrong error line numbers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37367@lists.php.net to get a copy of this message | ||
ID: 21938
Comment by: duerra at yahoo dot com
Reported By: arne dot brachhold at co4 dot de
Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Windows 2000
PHP Version: 4.3.1-dev
New Comment:
I am having this problem is as well. It doesn't happen in all my
scripts, but mainly on the larger ones. The only consistency here is
that it's telling me that the error occures BEFORE it actually does,
whether it's telling me 10 lines or 50 lines, though, isn't
consistent.
Example:
//line 145
echo "something"
PHP may tell me that I have an error on line 105, or something like
that.
This is very peculiar, but it is also very existent. Any word yet on
what could be going wrong??
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 08:04:37] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-02-13 02:21:22] sniper@php.net
What was the result when testing with CGI binary?
(on command line!)
I can't reproduce this with even over 1000 lines of code..
------------------------------------------------------------------------
[2003-02-05 03:45:55] arne dot brachhold at co4 dot de
It shows the correct line on short scripts like yours.
But when I create a script, write 20 times
if(isset($blubb)) {
}
ans then blubb(); which is now on line 88, it tells me the error is on
line 66. As longer the script is as higher is the difference.
Sorry at the moment i don't have the time to test this with the CGI
Binary. But i can do this on weekend.
------------------------------------------------------------------------
[2003-02-04 18:19:09] sniper@php.net
Using PHP 4.3.1-dev and running this script:
<?php
blubb();
?>
What line is the error reported on? (using PHP CLI binary)
And what about with PHP CGI binary ?
For me, it says the error is on line 3, which is correct.
------------------------------------------------------------------------
[2003-01-30 05:41:12] arne dot brachhold at co4 dot de
Sorry, this doesn't really help. The numbers are nearer to the right
position now, but not correct.
Displayed: ..in Line 125
Correct Position: 138
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21938
--
Edit this bug report at http://bugs.php.net/?id=21938&edit=1