Skip to content

Commit 7c1458c

Browse files
authored
Merge pull request #53 from phansys/uncataloged
Argument 1 in `db2_connect()` and `db2_pconnect()` can contain the connection password
2 parents e8e9265 + 6b6f802 commit 7c1458c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ibm_db2.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @param resource $connection
1212
* @return resource|false
1313
*/
14-
function db2_connect(string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
14+
function db2_connect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
1515

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

2727
/**
2828
* @param resource $connection

ibm_db2_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4007e338d00e0ff39a6cbf06a28aafed7969550d */
2+
* Stub hash: 0ca3175a9bfc7470cae69cc7b8930d4360a8d44b */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)

ibm_db2_legacy_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4007e338d00e0ff39a6cbf06a28aafed7969550d */
2+
* Stub hash: 0ca3175a9bfc7470cae69cc7b8930d4360a8d44b */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_INFO(0, database)

0 commit comments

Comments
 (0)