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!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to