From afe52eadf7e09d05d66545c755efa364d17bde77 Mon Sep 17 00:00:00 2001 From: Tom Van Looy Date: Fri, 15 Nov 2019 19:54:23 +0100 Subject: [PATCH 1/2] Add ext/pdo stubs --- ext/pdo/pdo.stub.php | 240 ++++++++++++++++++++++++++++++++++++++++++ ext/pdo/pdo_arginfo.h | 125 ++++++++++++++++++++++ ext/pdo/pdo_dbh.c | 71 ++++--------- ext/pdo/pdo_stmt.c | 111 ++++--------------- 4 files changed, 404 insertions(+), 143 deletions(-) create mode 100644 ext/pdo/pdo.stub.php create mode 100644 ext/pdo/pdo_arginfo.h diff --git a/ext/pdo/pdo.stub.php b/ext/pdo/pdo.stub.php new file mode 100644 index 0000000000000..245c77e701da4 --- /dev/null +++ b/ext/pdo/pdo.stub.php @@ -0,0 +1,240 @@ + Date: Sun, 17 Nov 2019 22:29:08 +0100 Subject: [PATCH 2/2] Fix: failing test in Zend/tests/bug71428.2.php --- ext/pdo/pdo.stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pdo/pdo.stub.php b/ext/pdo/pdo.stub.php index 245c77e701da4..509db89e1abf3 100644 --- a/ext/pdo/pdo.stub.php +++ b/ext/pdo/pdo.stub.php @@ -112,7 +112,7 @@ public function execute(?array $bound_input_params = null); * * @return mixed */ - public function fetch(int $how = PDO_FETCH_BOTH, int $orientation = 0, int $offset = 0); + public function fetch($how = PDO_FETCH_BOTH, $orientation = 0, $offset = 0); /** * @param int|string $paramno