Hi Jan, On Sat, Feb 22, 2025 at 9:07 AM Jan Hartmann via MapServer-users < mapserver-users@lists.osgeo.org> wrote:
> Hi all, > > I finally got mapserver 8.0.1 running in a clean Docker Ubuntu image, > using the regular apt packages mapserver-bin and php-mapscript-ng. > Thanks to Rich Greenwood for referring me to the php-mapscript-ng > package, it's difficult to find. BTW, who manages this package, so I can > inquire for the version for mapserver 8.4? > 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. > I am now updating all my mapserver 7 sites, the ones without SWIG > PHP-Mapscript. Some PHP functions can be easily redefined in a header > file, like: > > function ms_newMapObj($mapFile) {return new mapObj ($mapFile);} > > But I have not yet found out how to do this for object functions like > > mapObj->setMetadata($param1,$param2) > > This has to be changed to > > mapObj->web->metadata->set($param1,$param2). > > I tried things like: > > mapObj->setMetadata($param1,$param2) = function ($param1,$param2) { > $this->web->metadata->set($param1,$param2)}; > > But this does not work. Does anyone know how to do it? Is it possible at > all in PHP? If not, I have to convert all expressions like this in all > my scripts by hand. > I'm no PHP whiz but if it was me, I'd use sed to search and replace rather than create a wrapper function. Good luck and keep us posted. Rich > Jan > _______________________________________________ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood www.greenwoodmap.com
_______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users