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
 [2001-05-14 07:54 UTC] djlopez at mail dot com
$foo = "\n";
$foo = nl2br($foo);

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

Patches

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 07 13:01:27 2024 UTC