File_SearchReplace - booster
| From: | anatoly techtonik | Date: | Thu, 30 Dec 2004 20:06:28 +0000 |
| Subject: | File_SearchReplace - booster | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-35274@lists.php.net to get a copy of this message | ||
Hello pear-dev,
Some NY gasoline for SearchReplace package. =)
http://pear.php.net/bugs/bug.php?id=3067
Decrease memory consumption by using
preg_match_all($this->find, $file, $matches);
instead of
count($matches = preg_split($this->find, $file)) - 1;
Added preg_replace() ability translation to work with
search/replace arrays.
t
--