<html><head></head><body><div class="ydp251a8028yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Jeff,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">  ooops sorry for not replying to all.  </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">According to the migration guide, this means that I have include the mapscript.php that I build?   i.e. <div><div>/usr/local/src/mapserver-7.4.3/build/mapscript/phpng/mapscript.php  in every script that I start right   ?</div><div><br></div><div dir="ltr" data-setdir="false">This file still contains dl() function which is deprecated and will throw an error when loading</div><div><br></div><div dir="ltr" data-setdir="false">Also:  is Mapscript section supposed to be shown now in phpinfo() ; </div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">Thank you very much </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">-Stefanos</div><div><br></div></div></div><div><br></div>
        
        </div><div id="yahoo_quoted_9880501377" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Στις Παρασκευή, 17 Ιανουαρίου 2020, 11:38:03 μ.μ. EET, ο χρήστης Jeff McKenna <jmckenna@gatewaygeomatics.com> έγραψε:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Hi Stefanos,<br clear="none"><br clear="none">Your next step is to follow the Migration Guide, and change to the new <br clear="none">syntax for declaring new SWIG MapScript objects (see <br clear="none"><a shape="rect" href="https://mapserver.org/MIGRATION_GUIDE.html#mapserver-7-2-to-7-4-migration" target="_blank">https://mapserver.org/MIGRATION_GUIDE.html#mapserver-7-2-to-7-4-migration</a>)<br clear="none"><br clear="none">Please always reply-all, or, you can definitely contact me directly for <br clear="none">professional support, at any time.<br clear="none"><br clear="none">Have a nice weekend,<br clear="none"><br clear="none"><br clear="none">-jeff<br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Jeff McKenna<br clear="none">MapServer Consulting and Training Services<br clear="none"><a shape="rect" href="https://gatewaygeomatics.com/" target="_blank">https://gatewaygeomatics.com/</a><br clear="none"><br clear="none"><br clear="none"><br clear="none">On 2020-01-17 4:59 p.m., Stefanos Anastasiou wrote:<br clear="none">> Hi Jeff,<br clear="none">> <br clear="none">> Thank you for the reply.<br clear="none">> I did this way indeed and I thought it was  supposed to be installed. <br clear="none">> The weird thing is that in phpinfo() I cannot see the Mapscript section <br clear="none">> in it. For sure I saw there is a  libphp_mapscriptng.so in <br clear="none">> /usr/lib/php/20190902 folder but phpinfo() shows that the extension_dir <br clear="none">> is /usr/lib/php/20170718.  So I copied the .so file from <br clear="none">>   /usr/lib/php/20190902 to /usr/lib/php/20170718 and restarted apache <br clear="none">> but still nothing. I can't see the Mapscript section in the phpinfo() <br clear="none">> page. I also try to load the test_draw_map.phtml page but I am getting <br clear="none">> this error:<br clear="none">> <br clear="none">> Fatal error: Uncaught Error: Call to undefined function ms_newMapObj() <br clear="none">> in /var/www/html/test_draw_map.phtml:34<br clear="none">> <br clear="none">> So I guess it's not loaded.<br clear="none">> <br clear="none">> I'm not sure what I am missing.<br clear="none">> <br clear="none">> Thanks a lot<br clear="none">> <br clear="none">> -Stefanos<br clear="none">> <br clear="none">> Στις Παρασκευή, 17 Ιανουαρίου 2020, 03:14:39 μ.μ. EET, ο χρήστης Jeff <br clear="none">> McKenna <<a shape="rect" ymailto="mailto:jmckenna@gatewaygeomatics.com" href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>> έγραψε:<br clear="none">> <br clear="none">> <br clear="none">> Hi Stefanos,<br clear="none">> <br clear="none">> If you are trying to compile the new MapScript support through SWIG, for<br clear="none">> PHP7, then you should use "–DWITH_PHPNG=ON", as described at<br clear="none">> <a shape="rect" href="https://mapserver.org/installation/php.html#build-install-the-php-mapscript-module" target="_blank">https://mapserver.org/installation/php.html#build-install-the-php-mapscript-module</a><br clear="none">> <br clear="none">> Hope that helps.<br clear="none">> <br clear="none">> Have a nice weekend,<br clear="none">> <br clear="none">> -jeff<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> -- <br clear="none">> Jeff McKenna<br clear="none">> MapServer Consulting and Training Services<br clear="none">> <a shape="rect" href="https://gatewaygeomatics.com/" target="_blank">https://gatewaygeomatics.com/</a><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> On 2020-01-09 3:13 p.m., Stefanos Anastasiou wrote:<br clear="none">>  > Hello list,<br clear="none">>  ><br clear="none">>  >     I am confused about the new php mapcript version that comes with the<br clear="none">>  > SWIG family. I compiled a MapServer 7.4.3 version on my Ubuntu 19.04<br clear="none">>  > server (with php version 7.2.24) successfully with php and python <br clear="none">> mapscript.<br clear="none">>  ><br clear="none">>  >   ....<br clear="none">>  >              -DWITH_PYTHON=ON \<br clear="none">>  >              -DWITH_PHP=ON \<br clear="none">>  ><br clear="none">>  > mapserv -v shows:<br clear="none">>  ><br clear="none">>  > MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ<br clear="none">>  > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=XMP SUPPORTS=WMS_SERVER<br clear="none">>  > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br clear="none">>  > SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG<br clear="none">>  > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br clear="none">>  ><br clear="none">>  > However in my phpinfo() I could not see the MapScript section so I had<br clear="none">>  > to go to the php.ini and add the extension like<br clear="none">>  > extension=php_mapscript.so. After that and restarting the server I see<br clear="none">>  > it there now.<br clear="none">>  ><br clear="none">>  > Is this the right approach now ?<br clear="none">>  ><br clear="none">>  ><br clear="none">>  > And one more question:<br clear="none">>  ><br clear="none">>  > I am also trying to compile the same version of MapServer in my local<br clear="none">>  > machine (with Linux MInt) with the same cmake options and php version<br clear="none">>  > 7.2.26. But the compilation fails with the following errors:<br clear="none">>  ><br clear="none">>  > In file included from /usr/include/php/20190902/Zend/zend.h:27:0,<br clear="none">>  >                   from /usr/include/php/20190902/main/php.h:34,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:<br clear="none">>  > /usr/include/php/20190902/Zend/zend_types.h:665:0: note: this is the<br clear="none">>  > location of the previous definition<br clear="none">>  >   #define Z_ISREF_P(zval_p)   Z_ISREF(*(zval_p))<br clear="none">>  >   ^<br clear="none">>  > In file included from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript.h:37:0,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:71:0:<br clear="none">>  > warning: "Z_ISREF" redefined<br clear="none">>  >   #define Z_ISREF(z)            Z_ISREF_P(&(z))<br clear="none">>  >   ^<br clear="none">>  > In file included from /usr/include/php/20190902/Zend/zend.h:27:0,<br clear="none">>  >                   from /usr/include/php/20190902/main/php.h:34,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:<br clear="none">>  > /usr/include/php/20190902/Zend/zend_types.h:664:0: note: this is the<br clear="none">>  > location of the previous definition<br clear="none">>  >   #define Z_ISREF(zval)    (Z_TYPE(zval) == IS_REFERENCE)<br clear="none">>  >   ^<br clear="none">>  > In file included from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript.h:37:0,<br clear="none">>  >                   from<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:<br clear="none">>  > /usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:84:27:<br clear="none">>  > error: unknown type name ‘zend_uint’<br clear="none">>  >   static zend_always_inline zend_uint zval_refcount_p(zval* pz)<br clear="none">>  ><br clear="none">>  ><br clear="none">>  > Any help would be appreciated?<br clear="none">>  ><br clear="none">>  ><br clear="none">>  > Regards,<br clear="none">>  > Stefanos<br clear="none">> <br clear="none">>  ><br clear="none">>  ><br clear="none">>  > _<br clear="none">> _______________________________________________<br clear="none">> mapserver-users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> <mailto:<a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br clear="none">> <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><div class="yqt9553085012" id="yqtfd41838"><br clear="none"><br clear="none">_______________________________________________<br clear="none">mapserver-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br clear="none"><a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></div></div>
            </div>
        </div></body></html>