PHP 4.0 Bug #2904: nl2br malfunction

From: Date: Fri, 03 Dec 1999 15:16:46 +0000
Subject: PHP 4.0 Bug #2904: nl2br malfunction
Groups: php.dev 
Request: Send a blank email to php-dev+get-13404@lists.php.net to get a copy of this message
From: nicolai@dailyrush.dk Operating system: FreeBSD3.1 PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: nl2br malfunction The nl2br function doens't work correctly. It seems it mistreats the _'_ sign ex: $text = "It's not working"; $string = nl2br($text); result: $string = 'It\'s not working"; Same problem with $string = ereg_replace("\n","<BR>",$text); Running FreeBSD3.1, Apache 1.3.9, PHP4b3, with-mysql, with-imap.

« previous php.dev (#13404) next »