Clarified default behavior when omitting param. See PHP bug #52605.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302261 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-08-15 09:09:43 +00:00
parent 6e133c0d53
commit 2779e0140a

View file

@ -23,7 +23,7 @@
<term><parameter>object</parameter></term>
<listitem>
<para>
The tested object
The tested object. This parameter may be omitted when inside a class.
</para>
</listitem>
</varlistentry>
@ -37,12 +37,16 @@
instance. Returns &false; if <parameter>object</parameter> is not an
object.
</para>
<para>
If <parameter>object</parameter> is omitted when inside a class, the
name of that class is returned.
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
If get_class() is called with anything other than an object, an <constant>E_WARNING</constant>
level error is raised.
If <function>get_class</function> is called with anything other than an
object, an <constant>E_WARNING</constant> level error is raised.
</para>
</refsect1>
<refsect1 role="changelog">