ID:               50403
 Comment by:       carsten_sttgt at gmx dot de
 Reported By:      l dot anzinger at gmail dot com
 Status:           Open
 Bug Type:         Strings related
 Operating System: Debian Squeeze
 PHP Version:      5.2.11
 New Comment:

> Version:      5.2.11
> echo nl2br("foo\nbar", false);
                         ^^^^^
Available as of 5.3.0:
http://www.php.net/nl2br#function.nl2br.changelog

Regards,
Carsten


Previous Comments:
------------------------------------------------------------------------

[2009-12-07 22:31:48] l dot anzinger at gmail dot com

Description:
------------
Using the second parameter of nl2br, as discribed in the docs
(http://php.net/nl2br), does not work.

Reproduce code:
---------------
<?php
        echo nl2br("foo\nbar", false);
?>

Expected result:
----------------
foo<br>
bar

Actual result:
--------------
Warning: Wrong parameter count for nl2br() in
/var/www/superwayne.org/cron/- on line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50403&edit=1

Reply via email to