summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-01-28 13:31:52 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-01-28 13:31:52 +0100
commite9b4bca5a00d475c4176ce24a5203d42607642e8 (patch)
treeb0ac38bae59da6fabbde1728023f3b5b1eb40022 /ext/pdo
parent4dee63ca1cb650f96c227d9169787f70b0c86bd9 (diff)
downloadphp-git-e9b4bca5a00d475c4176ce24a5203d42607642e8.tar.gz
Fixed arginfo of PDO::__construct() to match the docs and zend_parse_parameters definition.
Diffstat (limited to 'ext/pdo')
-rw-r--r--ext/pdo/pdo_dbh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 64726f65de..4f5a391704 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -196,7 +196,7 @@ static char *dsn_from_uri(char *uri, char *buf, size_t buflen TSRMLS_DC) /* {{{
}
/* }}} */
-/* {{{ proto void PDO::__construct(string dsn, string username, string passwd [, array options])
+/* {{{ proto void PDO::__construct(string dsn[, string username[, string passwd [, array options]]])
*/
static PHP_METHOD(PDO, dbh_constructor)
{
@@ -1226,7 +1226,7 @@ static PHP_METHOD(PDO, getAvailableDrivers)
/* }}} */
/* {{{ arginfo */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pdo___construct, 0, 0, 3)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pdo___construct, 0, 0, 1)
ZEND_ARG_INFO(0, dsn)
ZEND_ARG_INFO(0, username)
ZEND_ARG_INFO(0, passwd)