Skip to content

Instantly share code, notes, and snippets.

@KalleZ
Last active July 4, 2018 17:37
Show Gist options
  • Save KalleZ/424ea78492cd5f4c2198cba6b25403d9 to your computer and use it in GitHub Desktop.
Save KalleZ/424ea78492cd5f4c2198cba6b25403d9 to your computer and use it in GitHub Desktop.
diff --git a/ext/pdo_odbc/pdo_odbc.c b/ext/pdo_odbc/pdo_odbc.c
index 0ff71a0cf8..c9d0be7580 100644
--- a/ext/pdo_odbc/pdo_odbc.c
+++ b/ext/pdo_odbc/pdo_odbc.c
@@ -92,6 +92,9 @@ PHP_MINIT_FUNCTION(pdo_odbc)
char *instance = INI_STR("pdo_odbc.db2_instance_name");
if (instance) {
char *env = malloc(sizeof("DB2INSTANCE=") + strlen(instance));
+
+ php_error_docref(NULL, E_DEPRECATED, "The pdo_odbc.db2_instance_name ini directive is deprecated and will be removed in the future");
+
if (!env) {
return FAILURE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment