Opened 21 years ago
Closed 21 years ago
#343 closed defect (fixed)
mapscript module crashes if ms_newshapefileobj is used
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 4.0 |
Severity: | major | Keywords: | |
Cc: |
Description
As soon as i use ms_newshapefileobj("path\filename",-1), the module php_mapscript_37.dll crashes. Apache and php themselves are still operable. It doesn't depend on the type of shapefile, the number of entries or the size of the file. It happens every time. I use Apache 2.43, PHP 4.3.2, Windows XP Pro and MapServer 3.7 (from mapserver-3.7-win32-php4.3.0-gd2.zip) with php_mapscript_37.dll ($Revision: 1.143 $ $Date: 2003/02/04 15:39:43 $). mapscript is parsed by the cgi-version of php and the mapscript module is defined as "extension=php_mapscript_37.dll" in php.ini. The extension is then loaded from the phtml-skript with dl(php_mapscript_37.dll).
Change History (5)
comment:2 by , 21 years ago
Commnets comming from Bug 344. I ill mark bug 344 as a duplicate. <?php dl("php_mapscript_40.dll"); $oShapFile = ms_newShapeFileObj("c:/msapps/gmap/data/roads", -1); ?> if roads does not exsit there is a crash happning in the msSHPCloseFile function. I have tested this on Windows.
comment:4 by , 21 years ago
I used the skript from Daniel Morissette (------- Additional Comment #1 From Daniel Morissette 2003-06-18 13:27 -------) and even that skript crashes the mapscript module. So the crash has nothing to do with the existence of the shapefile and therefore this bug report should not considered as a duplicate. I will now try to use the mapserver version from this distribution: http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.0-beta1-win32-php4.3.2.zip regards, Michael
comment:5 by , 21 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
the Mapserver distribution from http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.0-beta1-win32-php4.3.2.zip fixes the bug. I guess php_mapscript_37.dll does not completely work together with php 4.3.1 and 4.3.2 (I tried both versions and only encountered this mentioned error, everything else worked fine), so you have to rely on php 4.3.1 if you use mapscript 3.7. greetings, M. Härtel
Note:
See TracTickets
for help on using tickets.