Skip to content

Commit 1c469ad

Browse files
committed
Remove PDO::dbh_constructor()
1 parent c648553 commit 1c469ad

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

ext/pdo/pdo_dbh.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ static char *dsn_from_uri(char *uri, char *buf, size_t buflen) /* {{{ */
190190
}
191191
/* }}} */
192192

193-
/* {{{ proto PDO::__construct(string dsn[, string username[, string passwd [, array options]]])
194-
*/
195-
PHP_METHOD(PDO, dbh_constructor)
193+
/* {{{ proto PDO::__construct(string dsn[, string username[, string passwd [, array options]]]) */
194+
PHP_METHOD(PDO, __construct)
196195
{
197196
zval *object = ZEND_THIS;
198197
pdo_dbh_t *dbh = NULL;

ext/pdo/pdo_dbh.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class PDO
66
{
7-
/** @alias PDO::dbh_constructor */
87
public function __construct(string $dsn, ?string $username = null, ?string $passwd = null, ?array $options = null) {}
98

109
/** @return bool */

ext/pdo/pdo_dbh_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO_setAttribute, 0, 0, 2)
5252
ZEND_END_ARG_INFO()
5353

5454

55-
ZEND_METHOD(PDO, dbh_constructor);
55+
ZEND_METHOD(PDO, __construct);
5656
ZEND_METHOD(PDO, beginTransaction);
5757
ZEND_METHOD(PDO, commit);
5858
ZEND_METHOD(PDO, errorCode);
@@ -70,7 +70,7 @@ ZEND_METHOD(PDO, setAttribute);
7070

7171

7272
static const zend_function_entry class_PDO_methods[] = {
73-
ZEND_MALIAS(PDO, __construct, dbh_constructor, arginfo_class_PDO___construct, ZEND_ACC_PUBLIC)
73+
ZEND_ME(PDO, __construct, arginfo_class_PDO___construct, ZEND_ACC_PUBLIC)
7474
ZEND_ME(PDO, beginTransaction, arginfo_class_PDO_beginTransaction, ZEND_ACC_PUBLIC)
7575
ZEND_ME(PDO, commit, arginfo_class_PDO_commit, ZEND_ACC_PUBLIC)
7676
ZEND_ME(PDO, errorCode, arginfo_class_PDO_errorCode, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)