[Mapserver-dev] Re: PHP Mapscript module and RegEx

Anthony Best abest at digitalflex.net
Mon Sep 27 17:03:15 EDT 2004


Frank Warmerdam wrote:

> Anthony Best wrote:
>
>> 2. Replace the usage of the system regex to another implementation 
>> such as pcre, or some other standard implementation, and ensure there 
>> is no symbol conflicts.
>
>
> Folks,
>
> To me, this seems like the obvious solution.  Include a small regex
> implementation as part of the MapServer source and ensure that everything
> is renamed so that there is no conflict with system or PHP regex
> implementations.  I think there has been some previous discussion from 
> which
> this was the conclusion but there just wasn't anyone motivated to 
> implement
> the change.
>
While looking into this a bit further, I've noticed that php is using 
Henry Spencer's regex implementation. It doesn't seem to be modified (I 
didn't check). (See http://arglist.com/regex/)

I would suggest forking this (Henry Spencer's regex), and porting the 
mapserver code to it. Then at compile time selecting which to use (php 
or included). I suppose configure could detect this assuming php didn't 
modify the library.

If  this is decided I could start on this an send a patch against 
current CVS.

I suppose we could use glibc's regex, I don't know what licensing issues 
might be involved.

Anthony



More information about the mapserver-dev mailing list