Skip to content

Commit e85b17b

Browse files
committed
Mark parameter in ext/odbc as sensitive
1 parent ac6dbbd commit e85b17b

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

ext/odbc/odbc.stub.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,16 @@ function odbc_result_all($statement, string $format = ""): int|false {}
6969
/** @param resource $statement */
7070
function odbc_free_result($statement): bool {}
7171

72-
/** @return resource|false */
72+
/**
73+
* @sensitive-param $password
74+
* @return resource|false
75+
*/
7376
function odbc_connect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
7477

75-
/** @return resource|false */
78+
/**
79+
* @sensitive-param $password
80+
* @return resource|false
81+
*/
7682
function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
7783

7884
/** @param resource $odbc */

ext/odbc/odbc_arginfo.h

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/odbc/php_odbc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "php.h"
2626
#include "php_globals.h"
27+
#include "zend_attributes.h"
2728

2829
#include "ext/standard/info.h"
2930
#include "ext/standard/php_string.h"
@@ -483,6 +484,8 @@ PHP_MINIT_FUNCTION(odbc)
483484
putenv("DB2NOEXITLIST=TRUE");
484485
#endif
485486

487+
register_odbc_symbols(module_number);
488+
486489
return SUCCESS;
487490
}
488491
/* }}} */

0 commit comments

Comments
 (0)