[Mapserver-dev] Testing thread-safety

Daniel Morissette morissette at dmsolutions.ca
Tue Dec 16 18:46:44 EST 2003

Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote:
> Any ideas on what's going on here ? Is the PHP regex implementation
> sensitive to whether it's a module or not maybe ? Could I use "apache" for
> now, if only just for testing ?

Yes, the PHP configure option --with-regex=system behaves differently 
whether it is compiling as a module or as a CGI.  Actually when you 
compile as a module there is absolutely no way to use the system regex.

This is a problem that I expected and for which I still don't have a 
nice solution, other than modifying MapServer (the core) to build with 
the PHP regex which can be quite a pain. My workaround is to configure 
PHP as a CGI, then configure MapServer, and then reconfigure PHP as a 
module and compile it... basically fooling the configure as you did, 
except that in my case it worked. ;)

FYI there's a PHP bug that talks about this but I never got any feedback 
from them: http://bugs.php.net/bug.php?id=25704

So where do we go from here? I've filed this as a bug and will update 
the bug as soon as I have a solution:
This PHP MapScript issue is one of my top priorities before the next 

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

More information about the mapserver-dev mailing list