php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23135 PHP Outputs Wrong Error Line Numbers
Submitted: 2003-04-09 10:30 UTC Modified: 2003-04-09 16:57 UTC
From: duerra at yahoo dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.1 OS: XP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: duerra at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-04-09 10:30 UTC] duerra at yahoo dot com
Greetings.  The original Bug Report for this was posted here:
http://bugs.php.net/bug.php?id=21938
However, the topic is now closed.

I too am experiencing this issue.  Here's the breakdown:

Problem:  When there is an error in one of your scripts, such as a missing semi-colon, PHP outputs the error on the page as a completely wrong line number.  The only consistency in this bug that I can find is that PHP seems to always report that this error is on an EARLIER line number than it actually is.

Example:  
//line 145
echo "something something something"
//continue...

PHP would report the error as occuring on line, say, 130, for example.

The only real breakdown I can come up with here is that it *seems* to only occur on my larger scripts.  One script that I know has the problem is required_once() in almost all my other scripts, but these scripts do not *necissarily* inherit the problem, though they might.

PHP 4.3.1
XP Pro
Apache 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-09 16:56 UTC] 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-04-09 16:57 UTC] sniper@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 22:01:33 2024 UTC