#21938 [Fbk->Opn]: Wrong error line numbers
| From: | arne dot brachhold at co4 dot de | Date: | Wed, 29 Jan 2003 12:17:09 +0000 |
| Subject: | #21938 [Fbk->Opn]: Wrong error line numbers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31565@lists.php.net to get a copy of this message | ||
ID: 21938
User updated by: arne.brachhold@co4.de
Reported By: arne.brachhold@co4.de
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Windows 2000
PHP Version: 4.3.0
New Comment:
What I did:
=================
Made a script like this:
<?php
blubb();
?>
What should happen?
========================
This error:
Fatal error: Call to undefined function: blubb() in foo.php on line 3
What happend?
========================
This error:
Fatal error: Call to undefined function: blubb() in foo.php on line 2
As you see the line number is incorrect. It should be 3 instead of 2.
As longer the script is as longer are the differences betweeen the
correct and displayed line number.
This happens with all errors, warnings ans so on.
this happends since the upgrade of PHP to PHP 4.3.
System: Windows 2000 Server / Apache/1.3.24
Version: PHP 4.3 Windows Binary with unmodified php.ini-dist
Previous Comments:
------------------------------------------------------------------------
[2003-01-29 06:02:45] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-01-29 05:48:56] arne.brachhold@co4.de
The error will be displayed at a wrong line.
Sample:
Undefined variable: foo in foo.php on line 39
$foo is only used in line 113. This also happends with wrong functions
and other errors. This makes it really hard to find errors.
I'm using the windows binary with default configuration.
(php.ini-dist).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21938&edit=1