<div dir="ltr">Daniel,<div><br></div><div>Even by supposing that swig will support php7 in some not so distant future, which does not seem like an unreasonable expectation, I agree that it will very probably be cheaper to migrate the current php mapscript to support php7 than it would be to migrate it to use swig.</div><div>But in the longer run, we would have to deal with the migration to php8, etc...</div><div><br></div><div>Given that it seems to me that the migration that has to happen in the short term requires some non-trivial kind of investment, I believe that effort would be better invested in relying on swig to iron out those api changes for us, and focusing *our* effort on the single swig support rather than spreading it out on swig and php.</div><div><br></div><div>Both options are viable solutions. If there were to be a strong community investment with sufficient funding in php mapscript's future I would prefer the swig road.</div><div><br></div><div>Regards,</div><div>Thomas</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 April 2016 at 23:22, Daniel Morissette <span dir="ltr"><<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Backwards compatibility is a big thing, and I think it would be worth trying to upgrade the existing code instead of forcing a switch to a completely new API based on SWIG on long time users. Does swig have proper PHP support these days anyway? And does it do PHP7 at all?<br>
<br>
Note that the current module was in big part refactored by Alan a few years ago around the PHP5 API switch so it's not as if all the lines were exactly 15 years old.  :-)<br>
<br>
More seriously, there is a migration guide here and it doesn't look that bad (easier said than done, I know):<br>
<br>
<a href="https://wiki.php.net/phpng-upgrading" rel="noreferrer" target="_blank">https://wiki.php.net/phpng-upgrading</a><br>
<br>
If only I could find a few hours to dive into this...<br>
<br>
Daniel<span class=""><br>
<br>
On 2016-04-05 4:36 PM, thomas bonfort wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On our side, having to maintain only swig instead of swig + php makes<br>
enormous sense.<br>
However migrating php mapscript to swig is going to break 100% of<br>
backwards compatibility and all php code will have to be migrated to the<br>
new php+swig API. If we wanted to go down that road (which I think is a<br>
good idea) I think it is imperative that we also provide a wrapper from<br>
php_mapscript to mapscript+swig that we would immediately mark as<br>
deprecated unless there's a community incentive (and funding) to<br>
backport new features there.<br>
<br>
On 5 April 2016 at 19:20, Lime, Steve D (MNIT) <<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a><br></span><span class="">
<mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a>>> wrote:<br>
<br>
    I  was wondering if this might be an excuse to move away from the<br>
    hand-rolled PHP/MapScript to Swig. It seems Swig is not yet<br>
    supporting PHP7 either, although it seems like they are working it.<br>
    If the PHP7 internals are really that different then we're looking<br>
    at a new MapScript module anyway. I'd think trying to maintain both<br>
    versions with that older codebase would be challenging to say the<br>
    least. Thoughts?<br>
<br>
    Steve<br>
<br>
    -----Original Message-----<br>
    From: mapserver-dev [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a><br>
    <mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a>>] On Behalf Of<br>
    Sebastiaan Couwenberg<br>
    Sent: Monday, April 04, 2016 2:49 PM<br></span><span class="">
    To: <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a>><br>
    Subject: Re: [mapserver-dev] php-mapscript missing from Ubuntu 16.04<br>
    beta?<br>
<br>
    On 04/04/2016 09:33 PM, Worth Lutz wrote:<br>
     > What is needed to get php-mapscript working on php7?<br>
<br>
    Team effort :-)<br>
<br>
    <a href="https://lists.osgeo.org/pipermail/mapserver-users/2016-February/078689.html" rel="noreferrer" target="_blank">https://lists.osgeo.org/pipermail/mapserver-users/2016-February/078689.html</a><br>
<br>
    Kind Regards,<br>
<br>
    Bas<br>
<br>
    --<br>
      GPG Key ID: 4096R/6750F10AE88D4AF1<br>
    Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1<br>
    _______________________________________________<br>
    mapserver-dev mailing list<br></span>
    <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a>><span class=""><br>
    <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
    _______________________________________________<br>
    mapserver-dev mailing list<br></span>
    <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a>><span class=""><br>
    <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" rel="noreferrer" target="_blank">http://www.mapgears.com/</a><br>
T: <a href="tel:%2B1%20418-696-5056%20%23201" value="+14186965056" target="_blank">+1 418-696-5056 #201</a><br>
<br>
<a href="http://evouala.com/" rel="noreferrer" target="_blank">http://evouala.com/</a> - Location Intelligence Made Easy</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a></div></div></blockquote></div><br></div>