svn: /phpdoc/en/trunk/reference/pcre/functions/ preg-filter.xml
| From: | Peter Cowburn | Date: | Fri, 16 Apr 2010 08:19:34 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pcre/functions/ preg-filter.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6385@lists.php.net to get a copy of this message | ||
salathe Fri, 16 Apr 2010 08:19:34 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298066
Log:
clarify array_filter return value with no matches, fixes bug #51568
Bug: http://bugs.php.net/51568 (Open) Incorrect return value
description for preg_filter
Changed paths:
U phpdoc/en/trunk/reference/pcre/functions/preg-filter.xml
Modified: phpdoc/en/trunk/reference/pcre/functions/preg-filter.xml
===================================================================
--- phpdoc/en/trunk/reference/pcre/functions/preg-filter.xml 2010-04-16 02:40:41 UTC (rev 298065)
+++ phpdoc/en/trunk/reference/pcre/functions/preg-filter.xml 2010-04-16 08:19:34 UTC (rev 298066)
@@ -30,9 +30,9 @@
parameter is an <type>array</type>, or a <type>string</type> otherwise.
</para>
<para>
- If matches are found, the new <parameter>subject</parameter> will
- be returned, otherwise <parameter>subject</parameter> will be
- returned unchanged or &null; if an error occurred.
+ If no matches are found or an error occurred, an empty <type>array</type>
+ is returned when <parameter>subject</parameter> is an <type>array</type>
+ or &null; otherwise.
</para>
</refsect1>