Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Request #7403 str_ireplace too slow
Submitted: 2006-04-15 13:00 UTC
From: aidan Assigned: arpad
Status: Closed Package: PHP_Compat (version 1.5.0)
PHP Version: Irrelevant OS:
Roadmaps: 1.6.0a1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 + 43 = ?

 
 [2006-04-15 13:00 UTC] aidan (Aidan Lister)
Description: ------------ str_ireplace should be updated to use preg_replace William Donnelly wrote: > [This message has been brought to you via pear.php.net.] > > The php5 compat str_ireplace() function is EXTREMELY slow, so I modified > the source to speed up "simple all-string" replaces using > preg_replace(). I timed it, and my mod will do 200,000 executions in > ~<30 seconds, but the original won't even do 20,000 in 30 seconds.

Comments

 [2006-05-21 17:42 UTC] arpad (Arpad Ray)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.