Open jumpinjackie opened 7 years ago
Our first attempt to run the PHP test suite with our binding gives us this warning:
Warning: dl(): MapGuideApi: Unable to initialize module
Module compiled with build ID=API20170718,TS,VC14
PHP compiled with build ID=API20170718,TS,VC15
These options need to match
in D:\Workspace\mapguide-api-bindings\src\Test\Php\MapGuideApi.php on line 16
And then failing afterwards.
Which tells me we have to downgrade to PHP 7.1 (at least on windows), where the official release is compiled with the same compiler (VS2015)
Version 3.0.11 was recently released which added long-awaited support for PHP 7.
As it is imperative that we escape the pending EOL of PHP 5.6 which is in less than 2 years time, we need to explore a usable path where we can bundle in PHP 7 and a MapGuide API binding that works with this version.
Current checklist:
MgSiteConnection::CreateService
returns a proxy ofMgService
instead of the appropriate derived classMgByteReader
to verify our byte typemaps are workingMgException
based exceptionsMgException
based exceptions are being properly releasedmod_fcgid
, so from a practical standpoint it's simpler to just build for the NTS profile.MgException
-derived proxy classes, find a way to get SWIG to not generate all thosedelete
functions that will never get called.OSGeo\MapGuide
namespace