Ticket #2677 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

saveImage() seg faults with PHP MapScript in 5.2.0-beta4

Reported by: dmorissette Assigned to: dmorissette
Priority: normal Milestone: 5.2 release
Component: MapScript-PHP Version: unspecified
Severity: normal Keywords:
Cc: assefa, sdlime, mgleahy

Description

Mike Leahy wrote to mapserver-dev:

I just gave beta 4 a try - it seems something has broken the saveImage function in PHP_MapScript in beta4 - but only when the image is saved to a filename. When the image is sent directly to the web browser via stdout, the output looks fine. But if a filename is supplied, no file is created, and no errors are generated. This is with a fresh checkout of the beta4 tag in svn. I've gone back to beta3 and everything is fine again - is this a known issue of any sort, or should a new bug be filed?

Change History

07/03/08 13:44:00 changed by dmorissette

  • status changed from new to assigned.
  • cc changed from assefa,sdlime to assefa, sdlime, mgleahy.

07/03/08 13:52:41 changed by dmorissette

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r7782. This problem was introduced with the addition of new debug/tuning messages in ticket #2673... we were not checking for the map being NULL before accessing the map->debug member.