Date: 06/21/01
- Next message: sbergmann <email protected>: "[PHP-DEV] Bug #8868 Updated: Crash in zend_hash when compiled --with-servlet"
- Previous message: sbergmann <email protected>: "[PHP-DEV] Bug #6925 Updated: ext/java"
- Next in thread: Daniel Beckham: "Re: [PHP-DEV] Bug #11611: nl2br() outputting invalid <br> tags"
- Reply: Daniel Beckham: "Re: [PHP-DEV] Bug #11611: nl2br() outputting invalid <br> tags"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: nutbar <email protected>
Operating system: Linux Slackware current 2.4.5
PHP version: 4.0.5
PHP Bug Type: Strings related
Bug description: nl2br() outputting invalid <br> 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-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sbergmann <email protected>: "[PHP-DEV] Bug #8868 Updated: Crash in zend_hash when compiled --with-servlet"
- Previous message: sbergmann <email protected>: "[PHP-DEV] Bug #6925 Updated: ext/java"
- Next in thread: Daniel Beckham: "Re: [PHP-DEV] Bug #11611: nl2br() outputting invalid <br> tags"
- Reply: Daniel Beckham: "Re: [PHP-DEV] Bug #11611: nl2br() outputting invalid <br> tags"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

