Opened 17 years ago

Closed 17 years ago

#1962 closed defect (fixed)

setimagepath problem

Reported by: soussine@… Owned by: dmorissette
Priority: high Milestone: 5.0 release
Component: MapScript-PHP Version: 4.10
Severity: normal Keywords:
Cc:

Description (last modified by hobu)

-------------------------------
$nSymbol=$oStyle->symbol;

$oSymbol = $map->getSymbolObjectById($nSymbol);

$symboldid = ms_newSymbolObj($map,"xxx");

$oSymbol->setimagepath("/pic.gif");
-------------------------------


if pic.gif exist mapserver draw map.

else if pic.gif does not exist apache  child died 
with this error

[Sat Nov 18 20:39:03 2006] [notice] child pid 29168 exit signal Segmentation
fault (11)

system SUSE LINUX 10.1
PHP Version 4.4.1

System 	Linux SUSE 2.6.16.13-4-default #1 Mon Oct 2 10:35:39 MSD 2006 i686

Apache Version 	Apache/1.3.34 (Unix)


MapServer Version 	MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

PHP MapScript Version 	($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $)

Change History (4)

comment:1 by soussine@…, 17 years ago

Milestone: 4.10 release

comment:2 by hobu, 17 years ago

Description: modified (diff)

I cannot get this to segfault using the Python MapScript test suite, but the error message in msLoadImageSymbol was returning some junk when it couldn't open the file. Fixed that problem in r6565.

Test case added in r6566

comment:3 by dmorissette, 17 years ago

Owner: changed from mapserverbugs to dmorissette

Checking...

comment:4 by dmorissette, 17 years ago

Resolution: fixed
Status: newclosed

I have verified that Howard's fix in r6565 solves the issue for PHP as well (Thanks!).

However, in the PHP case, the MapServer error was not reported to the caller if the symbol image did not exist. I have added the missing _phpms_report_mapserver_error() call in r6591.

Note: See TracTickets for help on using tickets.