Bug #16535 Updated: Line breaks not correctly counted when file has Mac line endings
| From: | derick@php.net | Date: | Wed, 10 Apr 2002 20:33:40 +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-4555@lists.php.net to get a copy of this message | ||
ID: 16535
Updated by: derick@php.net
Reported By: danradigan@yahoo.com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
Hello,
can you verify if this occurs when you have mixed line endings (other
then only Mac endings) or just always (only Mac line endings).
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-04-10 16:27:43] danradigan@yahoo.com
Related bug Bug #10631, refiled per that bug since I still see it.
------------------------------------------------------------------------
[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