Opened 17 years ago
Last modified 17 years ago
#2021 closed defect
INCLUDE is only parsed in the first mapfile — at Initial Version
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapServer C Library | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: |
Description
When I use a script where different mapfiles are parsed, it seems like the INCLUDE directive is not followed in the second mapfile and therefore it generates an error. The following script, with two valid mapfiles with include directives generates the following error: Script: <?php dl("php_mapscript.so"); $map1 = ms_newMapObj("/home/johan/rwanda/start.map"); $map2 = ms_newMapObj("/home/johan/rwanda/start3.map"); ?> Error: Warning: [MapServer Error]: msLoadMap(): in /home/johan/public_html/test.php on line 5 Warning: Failed to open map file /home/johan/rwanda/start3.map in /home/johan/public_html/test.php on line 5 Some information on my mapscript version: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) ------------- The script also fails when using the cvs-version (same error): MapServer version 4.99 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE
Note:
See TracTickets
for help on using tickets.