mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix the return type of mysqli_connect()
This commit is contained in:
parent
86ef34fc61
commit
97f7279353
2 changed files with 3 additions and 3 deletions
|
@ -542,7 +542,7 @@ function mysqli_connect(
|
|||
?string $database = null,
|
||||
?int $port = null,
|
||||
?string $socket = null
|
||||
): mysqli|null|false {}
|
||||
): mysqli|false {}
|
||||
|
||||
function mysqli_connect_errno(): int {}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 5a2483f099fbebc795747e3b51402b2194020743 */
|
||||
* Stub hash: b801127d89f2a392476c71bef16f43c78d82dfd7 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
|
||||
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
|
||||
|
@ -33,7 +33,7 @@ ZEND_END_ARG_INFO()
|
|||
|
||||
#define arginfo_mysqli_commit arginfo_mysqli_begin_transaction
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_mysqli_connect, 0, 0, mysqli, MAY_BE_NULL|MAY_BE_FALSE)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_mysqli_connect, 0, 0, mysqli, MAY_BE_FALSE)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, hostname, IS_STRING, 1, "null")
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, username, IS_STRING, 1, "null")
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue