[PHP-DEV] Bug #11075: bad operation of nl2br function From: jkkim <email protected>
Date: 05/24/01

From: jkkim <email protected>
Operating system: Linux6.2
PHP version: 4.0.5
PHP Bug Type: Strings related
Bug description: bad operation of nl2br function

nl2br function seems do not operate correctly.
For example,
$a = "aaa
bbb";
$b = nl2br ($a);

The correct value of $b is following:
"aaa<br>
bbb"

But I got the wrong value like this:
"aaa
<br />
bbb"

FYI, I have used PHP language for 2 years and
the same code I tried worked well at the prior versions (PHP3.x, PHP4.0 ~ PHP4.0.4)

-- 
Edit Bug report at: http://bugs.php.net/?id=11075&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>