Hey,
this is already fixed in CVS.
thanks,
Derick
On Wed, 16 Oct 2002, Sagi Bashari wrote:
> 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
>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php