svn: /phpdoc/en/trunk/reference/strings/functions/ strlen.xml

From: Date: Mon, 21 Mar 2011 17:25:48 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ strlen.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7877@lists.php.net to get a copy of this message
philip Mon, 21 Mar 2011 17:25:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309499 Log: Documented strlen() behaviour with arrays including the 5.3 change. Closes PHP Bug #54153 Bug: http://bugs.php.net/54153 (Verified) strlen(array) behavior change as of 5.3 Changed paths: U phpdoc/en/trunk/reference/strings/functions/strlen.xml Modified: phpdoc/en/trunk/reference/strings/functions/strlen.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/strlen.xml 2011-03-21 16:55:28 UTC (rev 309498) +++ phpdoc/en/trunk/reference/strings/functions/strlen.xml 2011-03-21 17:25:48 UTC (rev 309499) @@ -41,6 +41,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Prior versions treated arrays as the string <literal>Array</literal>, thus returning + a string length of <literal>5</literal> and emitting an <constant>E_NOTICE</constant> level error. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -61,6 +84,16 @@ </para> </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <function>strlen</function> returns &null; when executed on arrays, and + an <constant>E_WARNING</constant> level error is emitted. + </para> + </note> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para>

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