Bug #11075: bad operation of nl2br function
| From: | jkkim at mail dot naver dot com | Date: | Thu, 24 May 2001 06:55:57 +0000 |
| Subject: | Bug #11075: bad operation of nl2br function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56577@lists.php.net to get a copy of this message | ||
From: jkkim@mail.naver.com
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