[PATCH] pcre caching and memory

From: Date: Sun, 20 Jun 2004 19:06:29 +0000
Subject: [PATCH] pcre caching and memory
Groups: php.internals 
Request: Send a blank email to internals+get-10662@lists.php.net to get a copy of this message
Problem: Php will allocate a new pcre object for each different regular expression. Since the allocated memory is outside the zend memory system, php can eat up lots of memory, and potentially eventually exhausting the memory. The patch I wrote introduces a new flag 'z', which enables the user to opt out of php caching the regular expression. Patch: http://zirzow.dyndns.org/patches/preg/php_pcre.patch Examples: http://zirzow.dyndns.org/patches/preg/pcre_memory.phps http://zirzow.dyndns.org/patches/preg/pcre_fixed.phps Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.internals (#10662) next »