From 6a26ef9f50aed0a2b18691a742c5703f869ec017 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Fri, 16 Apr 2010 08:19:34 +0000 Subject: [PATCH] clarify array_filter return value with no matches, fixes bug #51568 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298066 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/functions/preg-filter.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/pcre/functions/preg-filter.xml b/reference/pcre/functions/preg-filter.xml index 78472bf9be..6e41ee258d 100644 --- a/reference/pcre/functions/preg-filter.xml +++ b/reference/pcre/functions/preg-filter.xml @@ -30,9 +30,9 @@ parameter is an array, or a string otherwise. - If matches are found, the new subject will - be returned, otherwise subject will be - returned unchanged or &null; if an error occurred. + If no matches are found or an error occurred, an empty array + is returned when subject is an array + or &null; otherwise.