<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Jeff,<br>
<br>
thanks, I have a problem when using -DWITH_PHPNG=ON \
<p class="MsoNormal">Is that SWIG still expects PHP 7 and therefore
errors occur during make</p>
<p class="MsoNormal">[ 99%] Swig compile ../mapscript.i for php7</p>
<p class="MsoNormal">[ 99%] Built target
php_mapscriptng_swig_compilation</p>
<p class="MsoNormal">Scanning dependencies of target php_mapscriptng</p>
<p class="MsoNormal">[ 99%] Building C object
mapscript/phpng/CMakeFiles/php_mapscriptng.dir/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o</p>
<p class="MsoNormal">/root/mapserver-8.0.0-beta1/build/mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c:755:3:
error: #error These bindings need PHP7 - to generate PHP5 bindings
use: SWIG < 4.0.0 and swig -php5</p>
<p class="MsoNormal"><span style="mso-spacerun:yes"> </span>755 |
# error These bindings need PHP7 - to generate PHP5 bindings use:
SWIG < 4.0.0 and swig -php5</p>
<p class="MsoNormal">...</p>
<p class="MsoNormal">any idea?</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">thanks</p>
<p class="MsoNormal">Sven<br>
</p>
<p class="MsoNormal"><br>
</p>
<div class="moz-signature">
<br>
<br>
<br>
</div>
<div class="moz-cite-prefix">Am 21.07.2022 um 15:12 schrieb Jeff
McKenna:<br>
</div>
<blockquote type="cite"
cite="mid:736eb42d-6f5b-83a7-8e31-161b4ee49016@gatewaygeomatics.com">I
should also add here, as you mention PHP 8: I did much effort
recently to upgrade the continuous build systems (TravisCI, GitHub
action) so that various PHP versions are now tested for PHPNG
MapScript, including PHP 8.1.x, and re-enabled PHPUnit tests that
test each MapScript object, every time a pull request or commit is
made to the project repository. (you can find those tests inside
/msautotest/php/ and follow the README there)
<br>
<br>
More tests are warmly welcomed of course! :)
<br>
<br>
Thanks,
<br>
<br>
-jeff
<br>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>