[phpstorm-stubs] WI-74929 add db2_pclose function stub

This commit is contained in:
Ivan Fedorov 2023-11-03 12:43:57 +01:00
parent e967b60916
commit 13e37a8a9e
2 changed files with 14 additions and 0 deletions

View File

@ -2063,6 +2063,7 @@ const FUNCTIONS = array (
'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',

View File

@ -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