Opened 20 years ago

Closed 19 years ago

#780 closed defect (wontfix)

PHP/MapScript ImageObj method saveImage() gives segmentation fault

Reported by: velka@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.2
Severity: normal Keywords:
Cc:

Description

The method gives segmentation fault, if 
1) There are no layers to draw (they are not visible for some reason) and 
2) Image is sent to standard output. 
 
If the output is sent to file, all works as it should (blank image is 
generated). Also method saveWebImage() works well. 
GD version is 2.0.15,  
MapServer version is 4.2.1

Change History (3)

comment:1 by assefa, 20 years ago

Tested this on windows with 4.21 binaries (as well as the cvs version) :

 <?php
dl("php_mapscript_42.dll");

$map_file="gmap75.map";

$gpoMap = ms_newMapObj("gmap75.map");

$img = $gpoMap->draw();

header("Content-type: image/png");
$img->saveImage("");


?>

 All my layers are turned off but I could not reproduce the crash.

 Could you please provide more details on how to reproduce.

comment:2 by velka@…, 20 years ago

I use Linux. I try to locate the exact line from code which fails.  
I forgot, PHP version is 4.3.4. 

comment:3 by assefa, 19 years ago

Resolution: wontfix
Status: newclosed
Please reopen the bug if this is still an issue with latest versions.
Note: See TracTickets for help on using tickets.