ID: 19922 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Strings related Operating System: Linux PHP Version: 4.3.0-pre1 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-10-15 12:44:41] [EMAIL PROTECTED] The nl2br() function output is messed up, if the string is not empty but has no newline. testfile: ----------------------------------------------------- --TEST-- Testing nl2br() --FILE-- <?php $stringa = "without newline"; $stringb = "with\nnewline"; echo nl2br( $stringa), "\n"; echo nl2br( $stringb), "\n"; ?> --EXPECT-- without newline with newline log of test: ----------------------------------------------------- ---- EXPECTED OUTPUT without newline with newline ---- ACTUAL OUTPUT A ...(binay data can't copy :-) with<br /> newline ---- FAILED ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19922&edit=1
