com php-src: Restore PDOStatement::setFetchMode() signature: ext/pdo/pdo.stub.php ext/pdo/pdo_arginfo.h
| From: | Nikita Popov | Date: | Fri, 06 Dec 2019 06:18:11 +0000 |
| Subject: | com php-src: Restore PDOStatement::setFetchMode() signature: ext/pdo/pdo.stub.php ext/pdo/pdo_arginfo.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109405@lists.php.net to get a copy of this message | ||
Commit: 4a5e17f9afedb6bd750ae8a89a0cf705f738c7e4
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 6 Dec 2019 07:18:11 +0100
Parents: e0a8c7a8d0b312aae45ef46d27686771fc9297e9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a5e17f9afedb6bd750ae8a89a0cf705f738c7e4
Log:
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.
Changed paths:
M ext/pdo/pdo.stub.php
M ext/pdo/pdo_arginfo..h
Diff:
diff --git a/ext/pdo/pdo.stub.php b/ext/pdo/pdo.stub.php
index 7be5ad37720..13969edb579 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 7759d1b3108..56c1825198c 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()