#23135 [NEW]: PHP Outputs Wrong Error Line Numbers
| From: | duerra at yahoo dot com | Date: | Wed, 09 Apr 2003 15:30:00 +0000 |
| Subject: | #23135 [NEW]: PHP Outputs Wrong Error Line Numbers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37446@lists.php.net to get a copy of this message | ||
From: duerra at yahoo dot com
Operating system: XP Pro
PHP version: 4.3.1
PHP Bug Type: Scripting Engine problem
Bug description: PHP Outputs Wrong Error Line Numbers
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
--
Edit bug report at http://bugs.php.net/?id=23135&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23135&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23135&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23135&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23135&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23135&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23135&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23135&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23135&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23135&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23135&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23135&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23135&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23135&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23135&r=gnused