From f46ffd5511020e952be55b77a37f936f3af55d61 Mon Sep 17 00:00:00 2001 From: FraOre Date: Fri, 8 Nov 2024 18:14:22 +0100 Subject: [PATCH 1/2] Fix description for array_all function --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index 111966562bf4f..fd164f51afed3 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -6719,7 +6719,7 @@ PHP_FUNCTION(array_any) } /* }}} */ -/* {{{ Search within an array and returns true if an element is found. */ +/* {{{ Search within an array and returns true only if all elements are found. */ PHP_FUNCTION(array_all) { zval *array = NULL; From 36e4a7b51d2ca7317eb1c748c492cb1ea59199ab Mon Sep 17 00:00:00 2001 From: FraOre Date: Fri, 8 Nov 2024 19:18:37 +0100 Subject: [PATCH 2/2] Update functions array_any and array_all descriptions according to official documentation --- ext/standard/array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index fd164f51afed3..73a5f1ee4a328 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -6699,7 +6699,7 @@ PHP_FUNCTION(array_find_key) } /* }}} */ -/* {{{ Search within an array and returns true if an element is found. */ +/* {{{ Checks if at least one array element satisfies a callback function. */ PHP_FUNCTION(array_any) { zval *array = NULL; @@ -6719,7 +6719,7 @@ PHP_FUNCTION(array_any) } /* }}} */ -/* {{{ Search within an array and returns true only if all elements are found. */ +/* {{{ Checks if all array elements satisfy a callback function. */ PHP_FUNCTION(array_all) { zval *array = NULL;