[mapserver-users] Debugging PHP/Mapscript

Stephen Woodbridge woodbri at swoodbridge.com
Tue Jan 15 21:53:12 EST 2002


Daniel,

I grabbed the gmap75 release stuff and got the same behavior. I also
added to the bottom of the test_draw_map.php3 the following loop that
will cause it to segv the also:

for ($i=0; $i<$map->numlayers; $i++) {
  $mlay = $map->getLayer($i);
  printf("layer %2d = %s\n", $i, $mlay->{name});
}

So, I am off to build a debug version of php3. One thing I remembered
about my builds is that PHP3 is configured --with-system-regex but when
mapscript tries to build it insists on trying to use the stuff in the
php-3.0.18/regex directory which was not compiled. I run make in that
directory and then mapscript is happy and links in that stuff.

Now that I think about it that doesn't seem like a good thing, because I
now have two version of regex loaded: the system lib and the php dir!
Any thoughts on this?

I'll let you know how my debug session goes.

-Steve

Daniel Morissette wrote:
> 
> Stephen Woodbridge wrote:
> >
> > I just tried the php3/examples/test_draw_map.phtml file on my demo.map
> > which is working with 3.5 and it ran fine? So I am now wondering if the
> > problem may not lie in the gmap75 stuff. I will check the map file to
> > make sure it has the lastest 3.5 changes applied to it.
> >
> 
> Steve,
> 
> Make sure you're using the 3.5-release copy of GMap... we've placed a
> new copy on our download site with all the 3.5 changes a few days ago:
> 
>   http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-release.zip
> 
> and I've added a .tar.gz copy of the same a few minutes ago:
> 
>   http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-release.tar.gz



More information about the mapserver-users mailing list