Re: [PATCH] fix pcre global variable abuse
| From: | Rasmus Lerdorf | Date: | Fri, 23 Apr 2004 17:30:02 +0000 |
| Subject: | Re: [PATCH] fix pcre global variable abuse | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9520@lists.php.net to get a copy of this message | ||
On Fri, 23 Apr 2004, Andrei Zmievski wrote:
> On Fri, 23 Apr 2004, Rasmus Lerdorf wrote:
> > I guess I have no idea what you are talking about. The bug we are
> > discussing is that the PCRE extension registers pemalloc/pefree as the
> > cache malloc/free functions. On a restart these PHP wrappers go away and
> > we crash when another module hits PCRE while PHP is unloaded. It is as
> > simple as that. There is no memory manager issue anywhere in this bug.
>
> They are _not_ cache malloc/free functions. They are used during the
> request to obtain additional memory for computation.
You mean they are not generic memory alloc functions? I know that. But
they map to malloc/free which is the important point here.
-Rasmus