From 3e47b3cb7b2f423e94c55189e452e750aaec4d5e Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Thu, 18 Oct 2007 14:39:08 +0000 Subject: [PATCH] MFB53: Fixed bug #43020 (Warning message is missing with shuffle() and more than one argument) --- NEWS | 2 ++ ext/standard/array.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 57a84e043b..4702f2a08f 100644 --- a/NEWS +++ b/NEWS @@ -33,6 +33,8 @@ PHP NEWS - Fixed htmlentities/htmlspecialchars not to accept partial multibyte sequences. (Stas) +- Fixed bug #43020 (Warning message is missing with shuffle() and more + than one argument). (Scott) - Fixed bug #42917 (PDO::FETCH_KEY_PAIR doesn't work with setFetchMode). (Ilia) - Fixed bug #42890 (Constant "LIST" defined by mysqlclient and c-client). diff --git a/ext/standard/array.c b/ext/standard/array.c index 30be25a809..4710776648 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1844,7 +1844,7 @@ PHP_FUNCTION(shuffle) { zval *array; - if (zend_parse_parameters(1 TSRMLS_CC, "a", &array) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &array) == FAILURE) { RETURN_FALSE; } -- 2.50.1