]> granicus.if.org Git - php/commitdiff
Fixed arginfo of PDO::__construct() to match the docs and zend_parse_parameters defin...
authorBob Weinand <bobwei9@hotmail.com>
Tue, 28 Jan 2014 12:31:52 +0000 (13:31 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 28 Jan 2014 12:31:52 +0000 (13:31 +0100)
ext/pdo/pdo_dbh.c

index 64726f65dec4164be6152d7bd24b96e17d2c4946..4f5a391704463eceea572e23b53da9b47cd349a1 100644 (file)
@@ -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)