On Fri, 23 Apr 2004, Andi Gutmans wrote:
> Never mind. I don't feel like explaining myself a thousand times :) If 
> you'd have read what I wrote you would have seen that I wasn't saying that 
> we're using emalloc/efree (and thus the memory manager) today.
> I was talking about the PCRE library and not the PCRE extension. But in any 
> case, as PCRE is caching compiled regexes in between requests I don't think 
> we can make the library use emalloc/efree.
> Thus, it seems that the only option is to set the callbacks to malloc/free.

Or omit them at all. They are set to malloc/free by default anyway.
These callbacks are used only when PCRE library needs additional memory
during a long/large computation.

The regex cache is implemented via direct calls to pemalloc()/pefree(),
without using those callbacks.

- Andrei

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

Reply via email to