Bug #16535 Updated: Line breaks not correctly counted when file has Mac line endings
| From: | danradigan at yahoo dot com | Date: | Wed, 10 Apr 2002 20:27:43 +0000 |
| Subject: | Bug #16535 Updated: Line breaks not correctly counted when file has Mac line endings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4554@lists.php.net to get a copy of this message | ||
ID: 16535
Updated by: danradigan@yahoo.com
Reported By: danradigan@yahoo.com
Status: Open
Bug Type: Scripting Engine problem
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
Related bug Bug #10631, refiled per that bug since I still see it.
Previous Comments:
------------------------------------------------------------------------
[2002-04-10 16:26:42] danradigan@yahoo.com
When a file is saved using Macintosh-style line breaks
('\r') and there is some kind of error in the script (maybe
a parse error, etc.) then the line number that is reported
is always less than the line it occured on. In my script PHP told me
line 84, but it was actually 93.
It's a fairly minor thing, but annoying nonetheless. A
workaround, obviously, is to make sure you save your
scripts with Unix line-breaks ('\n').
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16535&edit=1