summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-02-15 16:20:02 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-02-15 16:24:54 +0100
commit0520eb8772280be6469200e37f6e3f25a9c4ff96 (patch)
tree0ffc2385c4d7b7c86c7521e2e4492bcd09a0820e
parentd4bef4ce7bcc6568ac81224fa0cddaa9bc81aaee (diff)
downloadphp-git-0520eb8772280be6469200e37f6e3f25a9c4ff96.tar.gz
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>
-rw-r--r--ext/com_dotnet/com_extension.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c
index 181f3ec0ee..94b6b65ee6 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;
}
}