From: Máté Kocsis Date: Fri, 10 Apr 2020 15:30:30 +0000 (+0200) Subject: Add missing parameter to the stub of mysqli_real_connect X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=481c8c2958d33fd093c0a7934f881b68707f3012;p=php Add missing parameter to the stub of mysqli_real_connect --- diff --git a/ext/mysqli/mysqli.stub.php b/ext/mysqli/mysqli.stub.php index 9a54529609..3675015801 100644 --- a/ext/mysqli/mysqli.stub.php +++ b/ext/mysqli/mysqli.stub.php @@ -414,6 +414,7 @@ function mysqli_real_connect( ?string $password = null, ?string $database = null, ?int $port = null, + ?string $socket = null, int $flags = 0 ): bool {} diff --git a/ext/mysqli/mysqli_arginfo.h b/ext/mysqli/mysqli_arginfo.h index 7ab37584fb..8645f0f34f 100644 --- a/ext/mysqli/mysqli_arginfo.h +++ b/ext/mysqli/mysqli_arginfo.h @@ -238,6 +238,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mysqli_real_connect, 0, 1, _IS_B ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, database, IS_STRING, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 1, "null") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, socket, IS_STRING, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0") ZEND_END_ARG_INFO()