svn: /phpdoc/en/trunk/reference/array/functions/ array-search.xml
| From: | Daniel Egeberg | Date: | Fri, 09 Apr 2010 14:04:21 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/array/functions/ array-search.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6357@lists.php.net to get a copy of this message | ||
degeberg Fri, 09 Apr 2010 14:04:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297745
Log:
Fixed PHP bug #51520 (strict-parameter of array_search() and object-identity)
Bug: http://bugs.php.net/51520 (Open) strict-parameter of
array_search() and object-identity
Changed paths:
U phpdoc/en/trunk/reference/array/functions/array-search.xml
Modified: phpdoc/en/trunk/reference/array/functions/array-search.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/array-search.xml 2010-04-09 11:34:34 UTC (rev 297744)
+++ phpdoc/en/trunk/reference/array/functions/array-search.xml 2010-04-09 14:04:21 UTC (rev 297745)
@@ -48,9 +48,12 @@
<listitem>
<para>
If the third parameter <parameter>strict</parameter> is set to &true;
- then the <function>array_search</function> function will also check the
+ then the <function>array_search</function> function will search for
+ <emphasis>identical</emphasis> elements in the
+ <parameter>haystack</parameters>. This means it will also check the
<link linkend="language.types">types</link> of the
- <parameter>needle</parameter> in the
<parameter>haystack</parameter>.
+ <parameter>needle</parameter> in the
<parameter>haystack</parameter>,
+ and objects must be the same instance.
</para>
</listitem>
</varlistentry>