[Mapserver-users] Re: [Fwd: Fwd: PHPMapscript]

Daniel Morissette morissette at dmsolutions.ca
Fri Oct 3 07:11:29 PDT 2003


(I've CC'd this to the mapserver-users list since this question comes up 
often there.)

Hi Steve,

This is a known issue which has been in PHP for a while.  If you 
configure PHP as a CGI as the documentation says then it shouldn't 
affect you.  (This happens only if your PHP is configured as an Apache 
module which is not supported for MapScript version 4.0 anyway)

We also have our own bug on this:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=252

As you can see when you read the bug, the problem is not directly 
related to MapScript even though it affects it.  Unfortunately the PHP 
guys probably won't recognize the issue until we show them the faulty 
code.  I've been through that before with other PHP bugs and the only 
way to get the bug fixed has been to submit a patch, very frustrating! 
Of course sniper at php.net is right in his comment saying that the 
mapscript module was written for PHP3 and then ported to PHP4, but even 
if it was rewritten today using only PHP4 stuff the issue would remain 
since it is in PHP and not in MapScript.

So where does that take you?  We blame PHP and they blame us and you're 
stuck in the middle.  Well for the time being you should configure your 
PHP as a CGI as suggested in 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript and the issue 
will go away.

Also, I've been working on removing that PHP CGI limitation for version 
4.1 and one of the issues I need to resolve is this regex issue.  I have 
a few ideas on how we can resolve this... just need time to work on this 
now.

Best Regards,

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


> ------------------------------------------------------------------------
> 
> Subject:
> PHPMapscript
> From:
> "Stephen Irven"
> Date:
> Thu, 02 Oct 2003 17:46:16 +0100
> To:
> <info at dmsolutions.ca>
> 
> 
> Hi,
> 
>  I understand your organisation develops and maintains the PHPMapscript
> utility, and just thought you should be aware of a bug/configuration
> issue in the section which ships with mapserver 4.0.
> 
> The current versions (certainly 4.3..3 or higher) of PHP won't allow
> themselves to be configured with system regex when used with apache, and
> PHPMapscript seems to require system regex to compile. This seems to
> mean that it can't be used with any recent version of PHP/Apache
> 
> See: http://bugs.php.net/bug.php?id=25704 
> 
> I'll let you know if I find any good solutions to this
> 
> Cheers,
> steve
> 





More information about the MapServer-users mailing list