From d7ac8581b1caf4475d1503ed9fc10b105c1f8247 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 7 Jun 2018 18:09:14 +1200 Subject: [PATCH] [php] Drop support for long-deprecated %pragma(php4) Finally removed support for %pragma(php4) which was deprecated back in 2008. The replacement is %pragma(php), which has been supported since at least 2005. --- CHANGES.current | 5 +++++ Source/Modules/php.cxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.current b/CHANGES.current index 3a0e5c079..7dbb8cd58 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -7,6 +7,11 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/ Version 4.0.0 (in progress) =========================== +2018-06-07: olly + [PHP] We've finally removed support for %pragma(php4) which was + deprecated back in 2008. Use %pragma(php) instead, which has been + supported since at least 2005. + 2018-06-07: olly [PHP5] Support for PHP5 has been removed. PHP5 is no longer actively supported by the PHP developers and security support for diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index c324e0c82..2b89223fa 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -1996,7 +1996,7 @@ done: String *type = Getattr(n, "name"); String *value = Getattr(n, "value"); - if (Strcmp(lang, "php") == 0 || Strcmp(lang, "php4") == 0) { + if (Strcmp(lang, "php") == 0) { if (Strcmp(type, "code") == 0) { if (value) { Printf(pragma_code, "%s\n", value);