svn: /phpdoc/en/trunk/reference/pcre/functions/ preg-match-all.xml preg-match.xml
| From: | Richard Quadling | Date: | Thu, 29 Oct 2009 10:58:02 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pcre/functions/ preg-match-all.xml preg-match.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5234@lists.php.net to get a copy of this message | ||
rquadling Thu, 29 Oct 2009 10:58:02 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290051
Log:
PREG_OFFSET_CAPTURE flag consistent between preg_match and preg_match_all. Fix #50032
Bug: http://bugs.php.net/50032 (Open) typo in function
parameter definition documentation
Changed paths:
U phpdoc/en/trunk/reference/pcre/functions/preg-match-all.xml
U phpdoc/en/trunk/reference/pcre/functions/preg-match.xml
Modified: phpdoc/en/trunk/reference/pcre/functions/preg-match-all.xml
===================================================================
--- phpdoc/en/trunk/reference/pcre/functions/preg-match-all.xml 2009-10-29 10:13:45 UTC (rev 290050)
+++ phpdoc/en/trunk/reference/pcre/functions/preg-match-all.xml 2009-10-29 10:58:02 UTC (rev 290051)
@@ -137,7 +137,7 @@
<para>
If this flag is passed, for every occurring match the appendant string
offset will also be returned. Note that this changes the value of
- <parameter>matches</parameter> in an array where every element is an
+ <parameter>matches</parameter> into an array where every element is an
array consisting of the matched string at offset <literal>0</literal>
and its string offset into <parameter>subject</parameter> at offset
<literal>1</literal>.
Modified: phpdoc/en/trunk/reference/pcre/functions/preg-match.xml
===================================================================
--- phpdoc/en/trunk/reference/pcre/functions/preg-match.xml 2009-10-29 10:13:45 UTC (rev 290050)
+++ phpdoc/en/trunk/reference/pcre/functions/preg-match.xml 2009-10-29 10:58:02 UTC (rev 290051)
@@ -65,10 +65,11 @@
<listitem>
<simpara>
If this flag is passed, for every occurring match the appendant string
- offset will also be returned. Note that this changes the return value
- in an array where every element is an array consisting of the matched
- string at index <literal>0</literal> and its string offset into
- <parameter>subject</parameter> at index <literal>1</literal>.
+ offset will also be returned. Note that this changes the value of
+ <parameter>matches</parameter> into an array where every element is an
+ array consisting of the matched string at offset <literal>0</literal>
+ and its string offset into <parameter>subject</parameter> at offset
+ <literal>1</literal>.
</simpara>
</listitem>
</varlistentry>