php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28665 Counting Twice EOL ^M
Submitted: 2004-06-07 06:26 UTC Modified: 2004-06-08 09:39 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jsgoupil at lookstrike dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.0.0RC2 OS: WinXP
Private report: No CVE-ID: None
 [2004-06-07 06:26 UTC] jsgoupil at lookstrike dot com
Description:
------------
We are currently working on WinXP and we change the CVS server to linux. Now some lines are counted twice when we do an error. So it says "error line 8" (supposed to be 4).

If we open the file with NotePad on Windows, we got the correct result (no double line)
If we open the file with WordPad on Windows, we got a wrong result (everything is on the same line)
If we open the file with vim on Linux, we got ^M at the end of the line.

We can delete these ^M with linux, but there is no way to delete it easily with Windows.

Expected result:
----------------
Just count Once line even they finished by a ^M

Actual result:
--------------
Counting twice line with ^M

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-08 09:39 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Don\'t mix different styles of line endings.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jul 07 08:05:44 2022 UTC