note 18444 deleted from function.str-replace by sniper
| From: | sniper@php.net | Date: | Tue, 23 Sep 2003 11:29:25 +0000 |
| Subject: | note 18444 deleted from function.str-replace by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56961@lists.php.net to get a copy of this message | ||
Note Submitter: NO_pccd@vazka.sk_SPAM
----
I found str_replace getting out of size limit, e.g. if you have standard 8MB quota specified in
php.ini, applying $foo=str_replace($pattern,$replacement,$foo) function when strlen($foo)>4194304
(4MB) will cause a PHP fatal error.