nl2br is broken in PHP4.3.0pre1

From: Date: Wed, 16 Oct 2002 18:12:11 +0000
Subject: nl2br is broken in PHP4.3.0pre1
Groups: php.dev 
Request: Send a blank email to php-dev+get-89575@lists.php.net to get a copy of this message
Hi, It seems like the nl2br() function is broken when the input string does not contain any newlines. [sagi@domino tmp]$ php -v PHP 4.3.0-pre1 (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies [sagi@domino tmp]$ cat test.php <?php print nl2br('hello world')."\n"; print nl2br("hello world\n")."\n"; ?> [sagi@domino tmp]$ php test.php !x7 hello world<br /> [sagi@domino tmp]$ It looks like someone already filed a bug report: http://bugs.php.net/bug.php?id=19858 Any news about this? Sagi

« previous php.dev (#89575) next »