php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #12957 switched newline and carriage return ascii codes
Submitted: 2001-08-25 08:15 UTC Modified: 2001-08-25 15:12 UTC
From: even at cycleburner dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: -
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 - 18 = ?
Subscribe to this entry?

 
 [2001-08-25 08:15 UTC] even at cycleburner dot org
In the manual entries for trim, ltrim and trim, the ASCII code for newline is listed as 13, and the ASCII code for carriage return is listed as 10.

It should be the other way around,
i.e. line feed/newline is ASCII 10 (0x0a), and carriage return is ASCII 13 (0x0D).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-25 15:12 UTC] eschmid@php.net
It?s now fixed in CVS. Thanks for reporting this bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 12:01:28 2024 UTC