<div dir="ltr"><div>Hi Jan,</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Feb 22, 2025 at 9:07 AM Jan Hartmann via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I finally got mapserver 8.0.1 running in a clean Docker Ubuntu image, <br>
using the regular apt packages mapserver-bin and php-mapscript-ng. <br>
Thanks to Rich Greenwood for referring me to the php-mapscript-ng <br>
package, it's difficult to find. BTW, who manages this package, so I can <br>
inquire for the version for mapserver 8.4?<br></blockquote><div><br></div><div>Do you mean where to find an apt-get compiled binary for mapser 8.4? If so, I think you'd find it in a future release of Ubuntu e.g. Ubuntu 25.04. Otherwise you'd need to build it yourself from source. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am now updating all my mapserver 7 sites, the ones without SWIG <br>
PHP-Mapscript. Some PHP functions can be easily redefined in a header <br>
file, like:<br>
<br>
function ms_newMapObj($mapFile) {return new mapObj ($mapFile);}<br>
<br>
But I have not yet found out how to do this for object functions like<br>
<br>
mapObj->setMetadata($param1,$param2)<br>
<br>
This has to be changed to<br>
<br>
mapObj->web->metadata->set($param1,$param2).<br>
<br>
I tried things like:<br>
<br>
mapObj->setMetadata($param1,$param2) = function ($param1,$param2) { <br>
$this->web->metadata->set($param1,$param2)};<br>
<br>
But this does not work. Does anyone know how to do it? Is it possible at <br>
all in PHP? If not, I have to convert all expressions like this in all <br>
my scripts by hand.<br></blockquote><div><br></div><div>I'm no PHP whiz but if it was me, I'd use sed to search and replace rather than create a wrapper function.</div><div><br></div><div>Good luck and keep us posted.</div><div>Rich</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jan<br>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>