Opened 13 years ago
#3942 new defect
PHP/Mapscript : ImageObj->saveImage() crashes when driver is AGG
Reported by: | fsimonin | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-PHP | Version: | 6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
When using driver AGG, ImageObj->saveImage() - without parameters or with an empty file name - fails.
The issue is line 331 of image.c:
gdFree(iptr);
At this point, if the driver is AGG, iptr is not a gdImagePtr.
See attached test-case: when browsed, index.php should send an empty PNG image. Instead, you get an HTTP error 500.
Attachments (2)
Note:
See TracTickets
for help on using tickets.
Test-case: Minimal mapfile