httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Bertola <>
Subject Re: splitting a string...
Date Tue, 02 Jan 2007 21:15:06 GMT
Joe Lewis wrote:
> Make SURE you are not using things like strcasestr - it is not
> platform independent (requires GNU source definitions).  Besides, you
> may want to change that to a series of apr_strmatch_precompile and
> apr_strmatch commands to do the searching - those take an additional
> parameter for the length of the bucket, and give you another added
> precaution against the dreaded NULL-termination issues across
> platforms and other modules.  Joe Orton helped me a great deal when I
> started finding problems that I thought were PHP bugs, but really
> allowed me to adapt for any lazy module that gets written.
Thanks, Joe.

I made a mental note to revisit apr_strmatch and friends.  I have to
find an example of how to allocate the pool used in the precompile.

It would be nice if I could attach it to the server pool so that it
would only be precompiled once, no?

Any help there?


View raw message