[mapserver-dev] PHP-Mapscript via SWIG/PHP Mapscript "Native" for PHP7

Alexander Gabriel Alexander.Gabriel at digital-infinity.de
Fri Oct 19 06:41:30 PDT 2018


Hi Seth,

this is a good question :)
Doesn't look very difficulty. Just didn't try yet.

To have this on Windows would be cool aswell… I thought about building php with only minimal extension (reduces build time), then install php via chocolatey to have a working environment and then run the tests.
Don't know how much time i have the next weeks but i have it in mind.


Regards,
Alex


Von: Seth G [mailto:sethg at geographika.co.uk]
Gesendet: Freitag, 19. Oktober 2018 15:14
An: mapserver-dev at lists.osgeo.org; Alexander Gabriel
Betreff: Re: [mapserver-dev] PHP-Mapscript via SWIG/PHP Mapscript "Native" for PHP7

Hi Alex,

I'm not sure if you are aware of them (I have only recently looked at the Python MapScript tests in the same place), but there is a suite of PHP MapScript tests in https://github.com/mapserver/mapserver/tree/master/msautotest/php
These are run by Travis via the MakeFile - https://github.com/mapserver/mapserver/blob/913d68e3804a4bea2b5f049ab1b5413f8a9b5dc5/Makefile#L43
It looks like these are all passing for your pull request. Could these tests also be run on the SWIG PHP bindings?
Regards,

Seth


--
web:http://geographika.co.uk
twitter: @geographika


On Fri, Oct 19, 2018, at 12:47 AM, Alexander Gabriel wrote:

I removed some uneeded code related to thread-safety that is not needed because there are no module global variables from PHP/Mapscript to be able to compile PHP/Mapscript in thread-safe environments (even a Linux-, not just Windows-problem) and opened a new PR: https://github.com/mapserver/mapserver/pull/5682

If you have any feedback or recommendations, please let me know.





Kind regards,

Alex







Von: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us]
Gesendet: Freitag, 12. Oktober 2018 01:42
An: Alexander Gabriel; Seth G; mapserver-dev at lists.osgeo.org
Betreff: Re: [mapserver-dev] PHP-Mapscript via SWIG



I don’t want to sit on PHP7 and the other MapScript improvements and would vote for something sooner rather than later. Those are enough for 7.4 IMHO.

Planning for an 8.0 release should be more comprehensive. A good sprint activity...

—Steve

________________________________


From: Alexander Gabriel <Alexander.Gabriel at digital-infinity.de>
Sent: Thursday, October 11, 2018 6:01:21 PM
To: Lime, Steve D (MNIT); Seth G; mapserver-dev at lists.osgeo.org
Subject: AW: [mapserver-dev] PHP-Mapscript via SWIG



Hi again,



not sure what i did wrong in summer - or now ;) - but i was able to build with PHP 7.2.11 x64 NTS on Windows.

Maybe we can get this running.

Will continue tomorrow or on the weekend :)



How is the roadmap for 7.4?

Is there already a release-date?





Alex





Von: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us]
Gesendet: Freitag, 12. Oktober 2018 00:02
An: Alexander Gabriel; Seth G; mapserver-dev at lists.osgeo.org
Betreff: RE: [mapserver-dev] PHP-Mapscript via SWIG



I think Windows is key since Swig can’t help either.



From: Alexander Gabriel [mailto:Alexander.Gabriel at digital-infinity.de]
Sent: Thursday, October 11, 2018 4:39 PM
To: Lime, Steve D (MNIT) <steve.lime at state.mn.us>; Seth G <sethg at geographika.co.uk>; mapserver-dev at lists.osgeo.org
Subject: AW: [mapserver-dev] PHP-Mapscript via SWIG



Havgin both for some kind of transition-period is not a bad idea.

I tried several hours to get the patch from bjoern running on windows (it works fine on linux) but failed and got stuck so i focused on swig.



Alex





Von: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (MNIT)
Gesendet: Donnerstag, 11. Oktober 2018 23:11
An: Seth G; mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
Betreff: Re: [mapserver-dev] PHP-Mapscript via SWIG



Definitely cause for a 7.4 release. Maybe sooner rather than later. There’s also a PHP/MapScript for PHP7 out there – native PHP, no Swig out there (https://github.com/bjoernboldt/mapscript-php7, https://github.com/mapserver/mapserver/pull/5461). I’m curious if folks think both should be part of a 7.4 release. Do we want both interfaces or do we focus on SWIG only moving foward?



--Steve



From: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Seth G
Sent: Thursday, October 11, 2018 3:41 PM
To: mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
Subject: Re: [mapserver-dev] PHP-Mapscript via SWIG



Hi Alex,



There don't seem to be any objections or concerns, and as Steve pointed out as this is brand new it won't break anything.

I've merged to master, and will be following up with several other mapscript related changes (mainly Python).

Perhaps this can form the basis of a 7.4 release?



Seth



--

web:http://geographika.co.uk

twitter: @geographika





On Tue, Oct 9, 2018, at 5:33 PM, Alexander Gabriel wrote:

Hi together,



i prepared my patches to be merged into master branch: https://github.com/mapserver/mapserver/pull/5675



There are a few issues in the moment which prevent testing my patches with AppVeyor (https://gitlab.kitware.com/cmake/cmake/issues/18421) and building it Thread-Safe on Windows (https://github.com/swig/swig/commit/224bb9e0232a219b7cefd23472b592b39e277f46) so only users that use current development state of SWIG and current development state of CMake will be able to compile this on Windows for Thread-Safe PHP (CMakeLists.txt checks for correct versions).



Because i think, there are more people waiting for PHP/Mapscript on Linux than on Windows, it would be good to merge this, don't advertise Mapscript for Windows as supported, wait until SWIG 4.0 and CMake 3.13 get released and then look for supporting Windows again.



I'm interessted in feedback. If you have any suggestions, ideas or any other feedback, please let me know. Seth (@geographika) offered to merge in a few days if there are no suggested changes.



Thank you.





Kind regards,

Alex







Von: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (MNIT)
Gesendet: Montag, 25. Juni 2018 16:35
An: mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
Betreff: [mapserver-dev] 7.2 release... and a question...



While PHP support for 7.2 was omitted  because of confusion on RFC status, I’ve been watching Alexander (@AlexanderGabriel) has been working hard the last 10 days to resurrect the SWIG/PHP work. See ticket https://github.com/mapserver/mapserver/issues/5252 and the pull request https://github.com/mapserver/mapserver/pull/5623.



Given the SWIG/PHP support is brand new and wouldn’t have any backwards compatibility issues. So, do we include it and have one more beta?



--Steve

_______________________________________________

mapserver-dev mailing list

mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/mapserver-dev


_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20181019/56e809c0/attachment-0001.html>


More information about the mapserver-dev mailing list