com php-src: Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number of parameters) : NEWS ext/reflection/tests/bug70960.phpt e
xt/standard/basic_functions.c

From: Date: Tue, 24 Nov 2015 05:45:16 +0000
Subject: com php-src: Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number of parameters) : NEWS ext/reflection/tests/bug70960.phpt e
xt/standard/basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89991@lists.php.net to get a copy of this message
Commit: e6b46dc2ff80e78a537155b6d5a556426c90fb59 Author: Xinchen Hui <laruence@gmail.com> Tue, 24 Nov 2015 13:45:16 +0800 Parents: 1c72e5b29929360167cdeec93b21bb9b6ef33c57 Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e6b46dc2ff80e78a537155b6d5a556426c90fb59 Log: Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number of parameters) Bugs: https://bugs.php.net/70960 Changed paths: M NEWS A ext/reflection/tests/bug70960.phpt M ext/standard/basic_functions.c Diff: diff --git a/NEWS b/NEWS index c294e29..f49ea8f 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,10 @@ PHP NEWS - SOAP: . Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry) +- Standard: + . Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number + of parameters). (Laruence) + 26 Nov 2015, PHP 5.6.16 - Core: diff --git a/ext/reflection/tests/bug70960.phpt b/ext/reflection/tests/bug70960.phpt new file mode 100644 index 0000000..30885cd --- /dev/null +++ b/ext/reflection/tests/bug70960.phpt @@ -0,0 +1,10 @@ +--TEST-- +Bug #70960 (ReflectionFunction for array_unique returns wrong number of parameters) +--FILE-- +<?php + +$ref = new ReflectionFunction('array_unique'); +var_dump(count($ref->getParameters())); +?> +--EXPECT-- +int(2) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 1abe3e6..27da28b 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -451,8 +451,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_array_change_key_case, 0, 0, 1) ZEND_ARG_INFO(0, case) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO(arginfo_array_unique, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_array_unique, 0, 0, 1) ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */ + ZEND_ARG_INFO(0, flags) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_array_intersect_key, 0, 0, 2)

« previous php.cvs (#89991) next »