Skip to content

Commit

Permalink
[phpstorm-stubs] WI-74929 add db2_pclose function stub
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Nov 3, 2023
1 parent e967b60 commit 13e37a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,7 @@ final class PhpStormStubsMap
'db2_next_result' => 'ibm_db2/ibm_db2.php',
'db2_num_fields' => 'ibm_db2/ibm_db2.php',
'db2_num_rows' => 'ibm_db2/ibm_db2.php',
'db2_pclose' => 'ibm_db2/ibm_db2.php',
'db2_pconnect' => 'ibm_db2/ibm_db2.php',
'db2_prepare' => 'ibm_db2/ibm_db2.php',
'db2_primary_keys' => 'ibm_db2/ibm_db2.php',
Expand Down
13 changes: 13 additions & 0 deletions ibm_db2/ibm_db2.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ function db2_commit($connection): bool {}
*/
function db2_pconnect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}

/**
* Closes a persistent database connection
*
* This function closes a persistent DB2 client connection.
*
* @link https://php.net/manual/en/function.db2-pclose.php
*
* @param resource $connection Specifies a persistent DB2 client connection.
*
* @return bool Returns true on success or false on failure.
*/
function db2_pclose($connection): bool {}

/**
* Returns or sets the AUTOCOMMIT state for a database connection
* @link https://php.net/manual/en/function.db2-autocommit.php
Expand Down

0 comments on commit 13e37a8

Please sign in to comment.