Skip to content

Commit e9b4bca

Browse files
committed
Fixed arginfo of PDO::__construct() to match the docs and zend_parse_parameters definition.
1 parent 4dee63c commit e9b4bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo/pdo_dbh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static char *dsn_from_uri(char *uri, char *buf, size_t buflen TSRMLS_DC) /* {{{
196196
}
197197
/* }}} */
198198

199-
/* {{{ proto void PDO::__construct(string dsn, string username, string passwd [, array options])
199+
/* {{{ proto void PDO::__construct(string dsn[, string username[, string passwd [, array options]]])
200200
*/
201201
static PHP_METHOD(PDO, dbh_constructor)
202202
{
@@ -1226,7 +1226,7 @@ static PHP_METHOD(PDO, getAvailableDrivers)
12261226
/* }}} */
12271227

12281228
/* {{{ arginfo */
1229-
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdo___construct, 0, 0, 3)
1229+
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdo___construct, 0, 0, 1)
12301230
ZEND_ARG_INFO(0, dsn)
12311231
ZEND_ARG_INFO(0, username)
12321232
ZEND_ARG_INFO(0, passwd)

0 commit comments

Comments
 (0)