From d2b902f174b2e8c98bf5d4e257924a96b1323776 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 6 Mar 2020 10:01:10 +0100 Subject: [PATCH] Add some stubs for SPL Closes GH-5245 --- ext/spl/php_spl.stub.php | 3 - ext/spl/spl_array.c | 174 +++++++++--------------- ext/spl/spl_array.stub.php | 225 +++++++++++++++++++++++++++++++ ext/spl/spl_array_arginfo.h | 136 +++++++++++++++++++ ext/spl/spl_fixedarray.c | 58 +++----- ext/spl/spl_fixedarray.stub.php | 64 +++++++++ ext/spl/spl_fixedarray_arginfo.h | 46 +++++++ ext/spl/tests/bug71412.phpt | 2 +- 8 files changed, 550 insertions(+), 158 deletions(-) create mode 100755 ext/spl/spl_array.stub.php create mode 100644 ext/spl/spl_array_arginfo.h create mode 100755 ext/spl/spl_fixedarray.stub.php create mode 100644 ext/spl/spl_fixedarray_arginfo.h diff --git a/ext/spl/php_spl.stub.php b/ext/spl/php_spl.stub.php index 8bf6e79c74..b9c5335b70 100755 --- a/ext/spl/php_spl.stub.php +++ b/ext/spl/php_spl.stub.php @@ -1,7 +1,5 @@ public method __construct ] { - Parameters [2] { Parameter #0 [ $array ] - Parameter #1 [ $flags ] + Parameter #1 [ int $flags ] } } -- 2.50.1