Bug #11611: nl2br() outputting invalid <br> tags

From: Date: Fri, 22 Jun 2001 02:13:10 +0000
Subject: Bug #11611: nl2br() outputting invalid <br> tags
Groups: php.dev 
Request: Send a blank email to php-dev+get-57606@lists.php.net to get a copy of this message
From: nutbar@chemlab.org Operating system: Linux Slackware current 2.4.5 PHP version: 4.0.5 PHP Bug Type: Strings related Bug description: nl2br() outputting invalid &lt;br&gt; tags put this into a test php file: <?php $temp = "this is\n\na test\n"; printf("%s", nl2br($temp)); ?> and you should get this as output from your webserver: this is<br /> <br /> a test<br /> I have confirmed this to be also an issue in the 4.0.6 release candidates, but I do not know when this all of a sudden became an issue. I'd like to know why it's creating <br /> tags instead of <br> tags :) -- Edit Bug report at: http://bugs.php.net/?id=11611&edit=1

« previous php.dev (#57606) next »