svn: /phpdoc/en/trunk/reference/var/functions/ intval.xml
| From: | Peter Cowburn | Date: | Thu, 09 Jun 2011 12:13:04 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/var/functions/ intval.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8233@lists.php.net to get a copy of this message | ||
salathe Thu, 09 Jun 2011 12:13:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311974
Log:
intval($object) returns 1 (doc #54923)
Bug: http://bugs.php.net/54923 (Open) intval() always return
1 with empty objets
Changed paths:
U phpdoc/en/trunk/reference/var/functions/intval.xml
Modified: phpdoc/en/trunk/reference/var/functions/intval.xml
===================================================================
--- phpdoc/en/trunk/reference/var/functions/intval.xml 2011-06-09 12:06:57 UTC (rev 311973)
+++ phpdoc/en/trunk/reference/var/functions/intval.xml 2011-06-09 12:13:04 UTC (rev 311974)
@@ -50,8 +50,7 @@
&reftitle.returnvalues;
<para>
The integer value of <parameter>var</parameter> on success, or 0 on
- failure. Empty arrays and objects return 0, non-empty arrays and
- objects return 1.
+ failure. Empty arrays return 0, non-empty arrays return 1.
</para>
<para>
The maximum value depends on the system. 32 bit systems have a
@@ -113,6 +112,32 @@
</note>
</refsect1>
+ <refsect1 role="changelog"><!-- {{{ -->
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.1.0</entry>
+ <entry>
+ Throws <constant>E_NOTICE</constant> and
+ returns 1, when an object is passed to
+ <parameter>var</parameter>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1><!-- }}} -->
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>