summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2023-04-14 17:38:01 +1200
committerOlly Betts <olly@survex.com>2023-04-14 17:38:01 +1200
commite3b112c69ceed5c39cb07fa45a3ba62b27712679 (patch)
treec7c771a2b1d09862632facdf01ae10a05e2d61a4 /Source
parent33f6a2d0b2c3d90b928f56ddfa599afe87903f76 (diff)
downloadswig-e3b112c69ceed5c39cb07fa45a3ba62b27712679.tar.gz
Remove support for PHP7
PHP7 security support ended 2022-11-28 so it doesn't make sense to include support for it in the SWIG 4.2.x release series.
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/php.cxx5
-rw-r--r--Source/Modules/swigmain.cxx2
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index c8cc9212b..6f326c15b 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -784,8 +784,9 @@ public:
Printf(s_init, "#ifdef __cplusplus\n");
Printf(s_init, "extern \"C\" {\n");
Printf(s_init, "#endif\n");
- // We want to write "SWIGEXPORT ZEND_GET_MODULE(%s)" but ZEND_GET_MODULE
- // in PHP7 has "extern "C" { ... }" around it so we can't do that.
+ // We want to write "SWIGEXPORT ZEND_GET_MODULE(%s)" but the definition
+ // of ZEND_GET_MODULE has "extern "C" { ... }" around it so we can't do
+ // that.
Printf(s_init, "SWIGEXPORT zend_module_entry *get_module(void) { return &%s_module_entry; }\n", module);
Printf(s_init, "#ifdef __cplusplus\n");
Printf(s_init, "}\n");
diff --git a/Source/Modules/swigmain.cxx b/Source/Modules/swigmain.cxx
index d553fe893..1d1b2946c 100644
--- a/Source/Modules/swigmain.cxx
+++ b/Source/Modules/swigmain.cxx
@@ -70,7 +70,7 @@ static TargetLanguageModule modules[] = {
{"-perl5", swig_perl5, "Perl 5", Supported},
{"-php", swig_php, NULL, Supported},
{"-php5", NULL, "PHP 5", Disabled},
- {"-php7", swig_php, "PHP 7 or later", Supported},
+ {"-php7", swig_php, "PHP 8 or later", Supported},
{"-pike", NULL, "Pike", Disabled},
{"-python", swig_python, "Python", Supported},
{"-r", swig_r, "R (aka GNU S)", Supported},