svn: /phpdoc/en/trunk/reference/strings/functions/ substr-compare.xml

From: Date: Thu, 11 Feb 2010 11:18:34 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ substr-compare.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6057@lists.php.net to get a copy of this message
rquadling Thu, 11 Feb 2010 11:18:34 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294881 Log: Removed inline <initializer> for the length parameter and described the default value in the Parameters section. Fix bug #50983 Bug: http://bugs.php.net/50983 (Closed) default value for $length parameter of substr_compare() is incorrect in docs Changed paths: U phpdoc/en/trunk/reference/strings/functions/substr-compare.xml Modified: phpdoc/en/trunk/reference/strings/functions/substr-compare.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/substr-compare.xml 2010-02-11 11:11:47 UTC (rev 294880) +++ phpdoc/en/trunk/reference/strings/functions/substr-compare.xml 2010-02-11 11:18:34 UTC (rev 294881) @@ -13,7 +13,7 @@ <methodparam><type>string</type><parameter>main_str</parameter></methodparam> <methodparam><type>string</type><parameter>str</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>strlen($main_str)</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>case_insensitivity</parameter><initializer>false</initializer></methodparam> </methodsynopsis> <para> @@ -56,7 +56,10 @@ <term><parameter>length</parameter></term> <listitem> <para> - The length of the comparison. + The length of the comparison. The default value is the largest of the + length of the <parameter>str</parameter> compared to the length of + <parameter>main_str</parameter> less the + <parameter>offset</parameter>. </para> </listitem> </varlistentry>

« previous php.doc.cvs (#6057) next »