Opened 23 years ago
Closed 21 years ago
#43 closed defect (fixed)
Function ms_newMapObj changes PHP's current directory
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 3.5 |
Severity: | minor | Keywords: | |
Cc: |
Description
Function ms_newMapObj changes PHP's current directory without any notice. There is a way around: <?php ... $cwd = getcwd(); $mapObj = ms_newMapObj("???.map"); chdir($cwd); ... ?> As I remember there is no PHP function except chdir with this behaviour. The reason for is probably using relative paths in the MAP file but I think there are only two possibilities: 1. Write it to the documentation. 2. Correct it.
Change History (3)
comment:1 by , 23 years ago
Cc: | added |
---|
comment:3 by , 21 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Marking as fixed. All chdir() calls have been removed in MapServer 3.7
Note:
See TracTickets
for help on using tickets.