Skip to content

Argument 1 in db2_connect() and db2_pconnect() can contain the connection password #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ibm_db2.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @param resource $connection
* @return resource|false
*/
function db2_connect(string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
function db2_connect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}

/**
* @param resource $connection
Expand All @@ -22,7 +22,7 @@ function db2_commit($connection): bool {}
* @param resource $connection
* @return resource|false
*/
function db2_pconnect(string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
function db2_pconnect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}

/**
* @param resource $connection
Expand Down
2 changes: 1 addition & 1 deletion ibm_db2_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4007e338d00e0ff39a6cbf06a28aafed7969550d */
* Stub hash: 0ca3175a9bfc7470cae69cc7b8930d4360a8d44b */

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
Expand Down
2 changes: 1 addition & 1 deletion ibm_db2_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4007e338d00e0ff39a6cbf06a28aafed7969550d */
* Stub hash: 0ca3175a9bfc7470cae69cc7b8930d4360a8d44b */

ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
ZEND_ARG_INFO(0, database)
Expand Down