|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-06 15:57 UTC] crrodriguez at opensuse dot org
[2008-12-06 18:33 UTC] daniel dot konopka at gmail dot com
[2008-12-06 18:34 UTC] daniel dot konopka at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 11:00:01 2025 UTC |
Description: ------------ str_replace and str_ireplace cause a memory leak Reproduce code: --------------- $chars_ph = array('-'); $chars_rep = array('045]'); $subject = 'Programmable 15-Bar Pump-Espresso Coffee Machine'; $i = 0; do { $subject = str_replace($chars_rep, $subject); ++$i; } while ($i<100000); Actual result: -------------- Php script execution stops after exceeding php memory pool.