Opened 16 years ago

Closed 14 years ago

#2597 closed defect (worksforme)

PROJ_LIB reset with PHP as a module

Reported by: jlacroix Owned by: dmorissette
Priority: normal Milestone: 5.2.1 release
Component: MapScript-PHP Version: unspecified
Severity: normal Keywords:
Cc: dmorissette, sdlime, aboudreault

Description

MapServer reprojection is not working with PHP compiled as an Apache module. Everything is fine on the first load of the page, but when we access the same process (same pid), then the PROJ_LIB library doesn't load. We get the following error: Projection library error. no system list

This is probably due the fact that the msCleanup() function at the end of a MapServer process delete the content of the PROJ_LIB environment variable:

  msSetPROJ_LIB( NULL );

Change History (7)

comment:1 by dmorissette, 16 years ago

Cc: sdlime added
Component: MapServer C LibraryMapScript-PHP
Milestone: 5.0.3 release
Owner: changed from sdlime to dmorissette

Moving this to PHP MapScript component since this is most likely caused by the way PHP MapScript handles calls to msCleanup().

comment:2 by dmorissette, 16 years ago

Milestone: 5.0.3 release5.2 release

comment:3 by dmorissette, 16 years ago

Milestone: 5.2 release5.2.1 release

comment:4 by dmorissette, 16 years ago

Cc: abouodreault added

comment:5 by dmorissette, 16 years ago

Cc: aboudreault added; abouodreault removed

comment:6 by aboudreault, 16 years ago

I did few tests with differents configurations of FGS/Apache/php, mapserver 4.10.3, 5.0.0, 5.0.2 and this bug doesn't seem to be in 5.0.0 and higher version of Mapserver/php_mapscript. I can't reproduce it with >=5.0.0 and all configurations i tried. I suggest to close this bug and reopen it if someone found a right configurations for reproduce it with the trunk.

comment:7 by dmorissette, 14 years ago

Resolution: worksforme
Status: newclosed

Closing WORKSFORME since we cannot reproduce.

Note: See TracTickets for help on using tickets.