vrana Sat Sep 18 14:57:29 2004 EDT
Modified files: /phpdoc/en/language types.xml Log: Converting from object (bug #29029) http://cvs.php.net/diff.php/phpdoc/en/language/types.xml?r1=1.141&r2=1.142&ty=u Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.141 phpdoc/en/language/types.xml:1.142 --- phpdoc/en/language/types.xml:1.141 Sat Sep 11 12:22:53 2004 +++ phpdoc/en/language/types.xml Sat Sep 18 14:57:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.141 $ --> +<!-- $Revision: 1.142 $ --> <chapter id="language.types"> <title>Types</title> @@ -271,7 +271,7 @@ </listitem> <listitem> <simpara>an <link linkend="language.types.object">object</link> - with zero member variables</simpara> + with zero member variables (PHP 4 only)</simpara> </listitem> <listitem> <simpara>the special type <link linkend="language.types.null" @@ -607,6 +607,7 @@ is the same as if the value would have been converted to integer and then to float. See the <link linkend="language.types.integer.casting">Converting to integer</link> section for more information. + As of PHP 5, notice is thrown if you try to convert object to float. </para> </sect2> </sect1> @@ -1158,6 +1159,7 @@ <type>object</type> for debugging reasons, read the paragraphs below. If you would like to find out the class name of which an object is an instance of, use <function>get_class</function>. + As of PHP 5, __toString() method is used if applicable. </para> <para> Resources are always converted to strings with the structure