diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-06 07:18:11 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-06 07:18:11 +0100 |
commit | 4a5e17f9afedb6bd750ae8a89a0cf705f738c7e4 (patch) | |
tree | beff66d96bcb605aa3bdc91c429d5a499ba9c13f /ext | |
parent | e0a8c7a8d0b312aae45ef46d27686771fc9297e9 (diff) | |
download | php-git-4a5e17f9afedb6bd750ae8a89a0cf705f738c7e4.tar.gz |
Restore PDOStatement::setFetchMode() signature
I don't think this is worth the BC break, and getting variadic
signature changes compatible across PHP versions is somewhat tricky.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pdo/pdo.stub.php | 2 | ||||
-rw-r--r-- | ext/pdo/pdo_arginfo.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/pdo/pdo.stub.php b/ext/pdo/pdo.stub.php index 7be5ad3772..13969edb57 100644 --- a/ext/pdo/pdo.stub.php +++ b/ext/pdo/pdo.stub.php @@ -129,5 +129,5 @@ class PDOStatement implements Traversable { public function setAttribute(int $attribute, $value) {} /** @return bool */ - public function setFetchMode(int $mode, ...$params) {} + public function setFetchMode(int $mode, $param1 = UNKNOWN, $param2 = UNKNOWN) {} } diff --git a/ext/pdo/pdo_arginfo.h b/ext/pdo/pdo_arginfo.h index 7759d1b310..56c1825198 100644 --- a/ext/pdo/pdo_arginfo.h +++ b/ext/pdo/pdo_arginfo.h @@ -125,5 +125,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0) - ZEND_ARG_VARIADIC_INFO(0, params) + ZEND_ARG_INFO(0, param1) + ZEND_ARG_INFO(0, param2) ZEND_END_ARG_INFO() |