svn: /phpdoc/en/trunk/reference/ intl/grapheme/grapheme-stristr.xml mbstring/functions/mb-stristr.xml strings/functions/stristr.xml
| From: | Gordon Oheim | Date: | Tue, 14 Feb 2012 18:35:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ intl/grapheme/grapheme-stristr.xml mbstring/functions/mb-stristr.xml strings/functions/stristr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9596@lists.php.net to get a copy of this message | ||
gooh Tue, 14 Feb 2012 18:35:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323218
Log:
clarified that the function will return the haystack including the needle, related to #61085
Bug: https://bugs.php.net/61085 (Open) Description of
strstr
Changed paths:
U phpdoc/en/trunk/reference/intl/grapheme/grapheme-stristr.xml
U phpdoc/en/trunk/reference/mbstring/functions/mb-stristr.xml
U phpdoc/en/trunk/reference/strings/functions/stristr.xml
Modified: phpdoc/en/trunk/reference/intl/grapheme/grapheme-stristr.xml
===================================================================
--- phpdoc/en/trunk/reference/intl/grapheme/grapheme-stristr.xml 2012-02-14 18:30:22 UTC (rev
323217)
+++ phpdoc/en/trunk/reference/intl/grapheme/grapheme-stristr.xml 2012-02-14 18:35:06 UTC (rev
323218)
@@ -15,7 +15,7 @@
<methodparam
choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>false</initializer></methodparam>
</methodsynopsis>
<para>
- Returns part of haystack string from the first occurrence of case-insensitive needle to the end
of haystack.
+ Returns part of haystack string starting from and including the first occurrence of
case-insensitive needle to the end of haystack.
</para>
</refsect1>
@@ -44,7 +44,7 @@
<listitem>
<para>
If &true;, grapheme_strstr() returns the part of the
- haystack before the first occurrence of the needle.
+ haystack before the first occurrence of the needle (excluding needle).
</para>
</listitem>
</varlistentry>
Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-stristr.xml
===================================================================
--- phpdoc/en/trunk/reference/mbstring/functions/mb-stristr.xml 2012-02-14 18:30:22 UTC (rev 323217)
+++ phpdoc/en/trunk/reference/mbstring/functions/mb-stristr.xml 2012-02-14 18:35:06 UTC (rev 323218)
@@ -52,9 +52,9 @@
Determines which portion of <parameter>haystack</parameter>
this function returns.
If set to &true;, it returns all of <parameter>haystack</parameter>
- from the beginning to the first occurrence of <parameter>needle</parameter>.
+ from the beginning to the first occurrence of <parameter>needle</parameter>
(including needle).
If set to &false;, it returns all of <parameter>haystack</parameter>
- from the first occurrence of <parameter>needle</parameter> to the end,
+ from the first occurrence of <parameter>needle</parameter> to the end (excluding
needle).
</para>
</listitem>
</varlistentry>
Modified: phpdoc/en/trunk/reference/strings/functions/stristr.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/stristr.xml 2012-02-14 18:30:22 UTC (rev 323217)
+++ phpdoc/en/trunk/reference/strings/functions/stristr.xml 2012-02-14 18:35:06 UTC (rev 323218)
@@ -15,7 +15,7 @@
<methodparam
choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>false</initializer></methodparam>
</methodsynopsis>
<para>
- Returns all of <parameter>haystack</parameter> from the first
+ Returns all of <parameter>haystack</parameter> starting from and including the first
occurrence of <parameter>needle</parameter> to the end.
</para>
</refsect1>
@@ -47,7 +47,7 @@
<para>
If &true;, <function>stristr</function>
returns the part of the <parameter>haystack</parameter> before the
- first occurrence of the <parameter>needle</parameter>.
+ first occurrence of the <parameter>needle</parameter> (excluding needle).
</para>
</listitem>
</varlistentry>