From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.0-pre1 PHP Bug Type: Strings related Bug description: nl2br() fails for not empty strings without newline.
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 bug report at http://bugs.php.net/?id=19922&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19922&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19922&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19922&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19922&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19922&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19922&r=support Expected behavior: http://bugs.php.net/fix.php?id=19922&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19922&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19922&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19922&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19922&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19922&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19922&r=isapi
