#16535 [Fbk->NoF]: Line breaks not correctly counted when file has Mac line endings
ID: 16535
Updated by: php-bugs@lists.php.net
Reported By: danradigan@yahoo.com
-Status: Feedback
+Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-04-10 16:33:39] derick@php.net
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
------------------------------------------------------------------------
[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
Thread (7 messages)