com php-src: Deprecate marking typelibs to load constants case-insensitively: ext/com_dotnet/com_extension.c
| From: | Christoph Michael Becker | Date: | Fri, 15 Feb 2019 15:24:54 +0000 |
| Subject: | com php-src: Deprecate marking typelibs to load constants case-insensitively: ext/com_dotnet/com_extension.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104667@lists.php.net to get a copy of this message | ||
Commit: 0520eb8772280be6469200e37f6e3f25a9c4ff96
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 15 Feb 2019 16:20:02 +0100
Parents: d4bef4ce7bcc6568ac81224fa0cddaa9bc81aaee
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0520eb8772280be6469200e37f6e3f25a9c4ff96
Log:
Deprecate marking typelibs to load constants case-insensitively
This is an amendment to commit fae2246[1] which missed this opportunity
to still introduce case-insensitive constants without a deprecation
warning.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=fae22461f95dfe8153fb74a53b9c5daeec47387f>
Changed paths:
M ext/com_dotnet/com_extension.c
Diff:
diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c
index 181f3ec..94b6b65 100644
--- a/ext/com_dotnet/com_extension.c
+++ b/ext/com_dotnet/com_extension.c
@@ -237,6 +237,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
modifier = php_strtok_r(NULL, "#", &strtok_buf);
if (modifier != NULL) {
if (!strcmp(modifier, "cis") || !strcmp(modifier, "case_insensitive")) {
+ php_error_docref("com.configuration", E_DEPRECATED, "Declaration of
case-insensitive constants is deprecated");
mode &= ~CONST_CS;
}
}