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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: even at cycleburner dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC