From 4a5e17f9afedb6bd750ae8a89a0cf705f738c7e4 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 6 Dec 2019 07:18:11 +0100 Subject: [PATCH] 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. --- ext/pdo/pdo.stub.php | 2 +- 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() -- 2.50.1