#16535 [Com]: Line breaks not correctly counted when file has Mac line endings
| From: | mpaugh at voicenet dot com | Date: | Thu, 09 Feb 2006 16:26:01 +0000 |
| Subject: | #16535 [Com]: 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-93078@lists.php.net to get a copy of this message | ||
ID: 16535
Comment by: mpaugh at voicenet dot com
Reported By: danradigan at yahoo dot com
Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Mac OS X
PHP Version: 4.1.2
New Comment:
I'm still seeing this as of PHP 5. If the file is saved using Windows
line endings or Unix line endings, the line number for an error is
accurate. But with Mac line endings, the line number is always way off.
I cannot test with a file with mixed line endings since my text editor
enforces the line endings for me based on what I choose (PC/Unix/Mac).
If it's necessary I can write a program to generate a file with mixed
line endings. I believe, however, that only Mac line endings (e.g.
isolated \r characters) cause the problem. (My guess is the engine is
looking only for \n but...)
I am using a Windows XP box with a text editor that lets me choose
which line endings to save files in, if that is any help. The problem
is not isolated to just the Mac OS.
Previous Comments:
------------------------------------------------------------------------
[2003-06-25 17:03:51] dradigan at macromedia dot com
But to be clear, this does show up with pure mac line
endings
------------------------------------------------------------------------
[2003-06-25 17:01:00] dradigan at macromedia dot com
I still see this bug in 4.3.0. I have a file that I
will email you that shows the problem. If I use mac
line endings the error is at line 44. If I use unix
line endings it shows at 67.
------------------------------------------------------------------------
[2002-08-22 01:00:10] php-bugs at lists dot php dot net
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".
------------------------------------------------------------------------
[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 at yahoo dot com
Related bug Bug #10631, refiled per that bug since I still see it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16535
--
Edit this bug report at http://bugs.php.net/?id=16535&edit=1