#23268 [NEW]: str_replace total system overload
| From: | nick at netdupe dot com | Date: | Fri, 18 Apr 2003 11:31:38 +0000 |
| Subject: | #23268 [NEW]: str_replace total system overload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37841@lists.php.net to get a copy of this message | ||
From: nick at netdupe dot com
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: Performance problem
Bug description: str_replace total system overload
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 bug report at http://bugs.php.net/?id=23268&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23268&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23268&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23268&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23268&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23268&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23268&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23268&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23268&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23268&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23268&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23268&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23268&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23268&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23268&r=gnused