<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Sven,</div><div><br></div><div>I haven't worked with Mapscript and IIS. However, I always free the map before unsetting it on PHP</div><div><br></div><div><font face=""courier new", courier, monaco, monospace, sans-serif">$oMap->free();</font></div><div><font face=""courier new", courier, monaco, monospace, sans-serif">unset($oMap);</font><br></div><div><br></div><div>Why don't you try this and see what happens<br></div><div><br></div></div><div><br></div>
<div id="ydp403f89bayahoo_quoted_1701143950" class="ydp403f89bayahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, November 24, 2017, 9:04:16 AM CST, Sven Schroeter <schroeter@netgis.de> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Hi,<br></div><div dir="ltr"><br></div><div dir="ltr">I write many mapfiles from an application to the file system under Windows<br></div><div dir="ltr">and IIS.<br></div><div dir="ltr">Another script loads this mapfiles and checks if it is the right syntax.<br></div><div dir="ltr">If there is an syntax error in the mapfile I'll get an exeption:<br></div><div dir="ltr"><br></div><div dir="ltr">try {<br></div><div dir="ltr"> $oMap = ms_newMapobj($mymapfile);<br></div><div dir="ltr">} catch (Exception $e) {<br></div><div dir="ltr"> echo '<strong>Exception:</strong> ', $e->getMessage(), "\n";<br></div><div dir="ltr"> exit;<br></div><div dir="ltr">}<br></div><div dir="ltr"><br></div><div dir="ltr">But after I opened the mapfile with newMapobj I can't delete (with unlink)<br></div><div dir="ltr">or update the file because of a permission denied warnings.<br></div><div dir="ltr">How can I unset the loaded mapfile? Everything I tried did not work. <br></div><div dir="ltr">Or is there another way to check the syntax of a mapfile (with includes)?<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks Sven<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">mapserver-users mailing list<br></div><div dir="ltr"><a href="mailto:mapserver-users@lists.osgeo.org" rel="nofollow" target="_blank">mapserver-users@lists.osgeo.org</a><br></div><div dir="ltr"><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></div>
</div>
</div></div></body></html>