|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-04-10 18:26 UTC] jim
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 15 20:00:02 2026 UTC |
This script demonstrates the problem: $haystack = "Line 1<BR>Line 2<BR>Line 3"; $result = str_replace("<BR>","\n",$haystack); echo($result); The output of this script is: Line 1 Line 2 This is followed by about 65K of what appears to be random sections of memory as it contains swaths of unparsed PHP code and PHP-generated HTML from other scripts. PHP is compiled as an Apache module. I've also tested this script with PHP 3.0.7, compiled as CGI under Linux, with no problems.