From c096a281bebfb94685ce246a172b41f57670087e Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 10 Dec 2015 19:36:41 +0800 Subject: [PATCH] The first arg is optional --- ext/spl/spl_array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index bba8e55905..0329270060 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -1169,8 +1169,8 @@ zend_object_iterator *spl_array_get_iterator(zend_class_entry *ce, zval *object, } /* }}} */ -/* {{{ proto void ArrayObject::__construct(array|object ar = array() [, int flags = 0 [, string iterator_class = "ArrayIterator"]]) - proto void ArrayIterator::__construct(array|object ar = array() [, int flags = 0]) +/* {{{ proto void ArrayObject::__construct([array|object ar = array() [, int flags = 0 [, string iterator_class = "ArrayIterator"]]]) + proto void ArrayIterator::__construct([array|object ar = array() [, int flags = 0]]) Constructs a new array iterator from a path. */ SPL_METHOD(Array, __construct) { @@ -1810,7 +1810,7 @@ outexcept: } /* }}} */ /* {{{ arginfo and function table */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_array___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_array___construct, 0, 0, 0) ZEND_ARG_INFO(0, array) ZEND_ARG_INFO(0, ar_flags) ZEND_ARG_INFO(0, iterator_class) -- 2.40.0