[PHP7] Make default C++ extension .cxx

This is SWIG's default for every language except PHP, and now is a
good time to make this change so that once we drop PHP5 support, we'll
have the same default everywhere.  It's easy to override the default
with -cppext cxx to get the PHP5 behaviour.
This commit is contained in:
Olly Betts 2016-11-30 13:27:13 +13:00
commit 75a00cd15e
6 changed files with 13 additions and 7 deletions

View file

@ -7,8 +7,10 @@ Version 3.0.11 (in progress)
2016-11-30: olly
[PHP] Add support for PHP7. PHP5's C extension API has changed substantially
so you need to use -php7 to specify you want PHP7 compatible wrappers.
Fixes https://github.com/swig/swig/issues/571
so you need to use -php7 to specify you want PHP7 compatible wrappers. The
default extension for generated wrappers is now .cxx (to match SWIG's default
for every other language - to generate foo_wrap.cpp you can run SWIG with
-cppext cpp). Fixes https://github.com/swig/swig/issues/571
2016-11-28: wsfulton
Fix %rename override of wildcard %rename for templates. For example: