#23268 [Opn]: str_replace total system overload
ID: 23268
User updated by: nick at netdupe dot com
Reported By: nick at netdupe dot com
Status: Open
Bug Type: Performance problem
Operating System: Linux
PHP Version: 4.3.1
New Comment:
got a little mistake in there, "shoudnt it come up?"
should be "shoudnt it come up with an error?"
Previous Comments:
------------------------------------------------------------------------
[2003-04-18 06:31:38] nick at netdupe dot com
If you accidently put something like the following in
str_replace the server goes nuts and does not return
any information.
<?
$code = "hello";
$string = "Hello, Bob how are you";
$text = str_replace("$code", "hey", $string);
?>
This only occurs when you put $code in quotation marks.
Shouldnt it come up? I did this the server load went
from 0.05 to 23.4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23268&edit=1
Thread (6 messages)