[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/strings/functions/_strlen.xml?=
From:       Philip_Olson <philip () php ! net>
Date:       2011-03-21 17:25:48
Message-ID: svn-philip-1300728348-309499-1303375673 () svn ! php ! net
[Download RAW message or body]

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>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic