Re: preg leak
| From: | George Schlossnagle | Date: | Wed, 25 Aug 2004 00:57:31 +0000 |
| Subject: | Re: preg leak | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12342@lists.php.net to get a copy of this message | ||
On Aug 24, 2004, at 7:51 PM, Jason wrote:
Thanks for the feedback. A way to somehow limit the caching of expressions would be ideal, otherwise, the memory is lost forever with no way to reclaim it. I imagine a limited size cache which keeps only the most used expressions would be ideal. If anyone can tell me which source file has the 'caching' code in it that would be very appreciated.The entirety of the code is in ext/pcre/php_pcre.c, and the cache itself is maintained pretty much entirely in pcre_get_compiled_regex_ex(). George