php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10847 nl2br - buggy
Submitted: 2001-05-14 07:54 UTC Modified: 2001-05-14 08:02 UTC
From: djlopez at mail dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.5 OS: Debian/Linux
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: djlopez at mail dot com
New email:
PHP Version: OS:

 

 [2001-05-14 07:54 UTC] djlopez at mail dot com
$foo = "\n";
$foo = nl2br($foo);

// $foo is now "<br />"  !!!!!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-14 08:01 UTC] sniper@php.net
This is the correct behaviour. It's now xhtml compatible.
No bug.


--Jani

 [2001-05-14 08:02 UTC] sniper@php.net
This is the correct behaviour. It's now xhtml compatible.
No bug.


--Jani

 [2001-05-14 08:02 UTC] derick@php.net
Not a bug, but intended bahaviour. It's now XHTML proof

Derick
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jun 17 21:01:23 2021 UTC