I get a segmentation fault when I run the following simple script with PHP 
MapScript on Mac OSX 10.5.6 running the latest versions from www.kyngchaos.com

#!/usr/local/php5cgi/bin/php -q
<?php
    dl('php_mapscript.so');
    $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 
477811,1207043 478520,1207657 478875)))';
    $drawnShp = ms_shapeObjFromWkt($newwkt);
    echo $drawnShp->toWKT();
?>

/Library/WebServer/CGI-Executables/mapserv -v
MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS 
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

The only output is;
Segmentation fault

The php version is 5.2.9 and the same thing happens with php versions 5.2.8, 
5.2.5.

MapServer Version    MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS 
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP MapScript Version    ($Revision: 7937 $ $Date: 2008-09-30 07:37:46 -0700 
(Tue, 30 Sep 2008) $)


Anybody else run into this this error?  How do I get more debug information?


Thanks,

Paul
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to