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

Daniel Morissette dmorissette at dmsolutions.ca
Mon Sep 27 18:10:16 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.
> 

That's one of the options that I have had in mind for quite a while, but 
I find that it's a shame to have to carry our own copy of regex just 
because PHP and Apache did that and screwed our build environment.

<rant>
Unfortunately that doesn't help with other libs that PHP bundles. The 
next big one is GD: PHP is also bundling its own custom GD. At least we 
are still able to force PHP to build with the system GD, but most 
systems with PHP pre-installed are using the bundled GD and not the 
system GD, so lots of people are forced to recompile PHP to use the 
system GD. If we followed the same logic then should we bundle our own 
copy of GD with MapServer as well? That would suck.
</rant>

I have added the above to bug 520:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=520

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-dev mailing list