Re: [PATCH] fix pcre global variable abuse

From: Date: Fri, 23 Apr 2004 17:32:59 +0000
Subject: Re: [PATCH] fix pcre global variable abuse
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-9521@lists.php.net to get a copy of this message
On Fri, 23 Apr 2004, Rasmus Lerdorf wrote: > You mean they are not generic memory alloc functions? I know that. But > they map to malloc/free which is the important point here. The global variables pcre_malloc and pcre_free initially contain the entry points of the standard malloc() and free() functions respectively. PCRE calls the memory management functions via these variables, so a calling program can replace them if it wishes to intercept the calls. This should be done before calling any PCRE functions. pcre_malloc() is then called at various points to obtain additional memory. - Andrei

« previous php.internals (#9521) next »