<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Hello list,</div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br></div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">   I am confused about the new php mapcript version that comes with the SWIG family. I compiled a MapServer 7.4.3 version on my Ubuntu 19.04 server (with php version 7.2.24) successfully with php and python mapscript.</div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br></div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"> .... </div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><div>            -DWITH_PYTHON=ON \</div><div>            -DWITH_PHP=ON \</div><div><br></div><div dir="ltr" data-setdir="false">mapserv -v shows: </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=XMP SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</div><div><br></div></div>However in my phpinfo() I could not see the MapScript section so I had to go to the php.ini and add the extension like</div><div dir="ltr" data-setdir="false">extension=php_mapscript.so. After that and restarting the server I see it there now.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Is this the right approach now ?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">And one more question: </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I am also trying to compile the same version of MapServer in my local machine (with Linux MInt) with the same cmake options and php version 7.2.26. But the compilation fails with the following errors: </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>In file included from /usr/include/php/20190902/Zend/zend.h:27:0,</div><div>                 from /usr/include/php/20190902/main/php.h:34,</div><div>                 from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,</div><div>                 from /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:</div><div>/usr/include/php/20190902/Zend/zend_types.h:665:0: note: this is the location of the previous definition</div><div> #define Z_ISREF_P(zval_p)   Z_ISREF(*(zval_p))</div><div> ^</div><div>In file included from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:37:0,</div><div>                 from /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:</div><div>/usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:71:0: warning: "Z_ISREF" redefined</div><div> #define Z_ISREF(z)            Z_ISREF_P(&(z))</div><div> ^</div><div>In file included from /usr/include/php/20190902/Zend/zend.h:27:0,</div><div>                 from /usr/include/php/20190902/main/php.h:34,</div><div>                 from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,</div><div>                 from /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:</div><div>/usr/include/php/20190902/Zend/zend_types.h:664:0: note: this is the location of the previous definition</div><div> #define Z_ISREF(zval)    (Z_TYPE(zval) == IS_REFERENCE)</div><div> ^</div><div>In file included from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:37:0,</div><div>                 from /usr/local/src/mapserver/mapscript/php/mapscript_error.c:32:</div><div>/usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:84:27: error: unknown type name ‘zend_uint’</div><div> static zend_always_inline zend_uint zval_refcount_p(zval* pz)</div><div><br></div></div><br></div><div dir="ltr" data-setdir="false">Any help would be appreciated?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false">Stefanos</div></div></div><br></div></div></body></html>