php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6079 "\n" evaluates to LF (0x0a) on Win32 (should be CRLF)
Submitted: 2000-08-10 17:05 UTC Modified: 2000-08-10 17:18 UTC
From: php-bugs at bjoernsworld dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS:
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bugs at bjoernsworld dot de
New email:
PHP Version: OS:

 

 [2000-08-10 17:05 UTC] php-bugs at bjoernsworld dot de
On Win32 \n is CRLF.

<?
  $s = "\n";
  print strlen($s);
?>

Result is '1'.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-10 17:16 UTC] stas@php.net
\n is one character and always was.
 [2000-08-10 17:18 UTC] stas@php.net
\n is one character and always was.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 23:01:30 2024 UTC