|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jsgoupil at lookstrike dot com
New email:
PHP Version: OS:


 [2004-06-07 06:26 UTC] jsgoupil at lookstrike dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-08 09:39 UTC]
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 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-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 02:01:29 2024 UTC