svn: /phpdoc/en/trunk/reference/classobj/functions/ get-class.xml
| From: | Daniel Egeberg | Date: | Sun, 15 Aug 2010 09:09:43 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/classobj/functions/ get-class.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6996@lists.php.net to get a copy of this message | ||
degeberg Sun, 15 Aug 2010 09:09:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=302261
Log:
Clarified default behavior when omitting param. See PHP bug #52605.
Bug: http://bugs.php.net/52605 (Closed) get_class(NULL)
returns class name when called insid member function of a class
Changed paths:
U phpdoc/en/trunk/reference/classobj/functions/get-class.xml
Modified: phpdoc/en/trunk/reference/classobj/functions/get-class.xml
===================================================================
--- phpdoc/en/trunk/reference/classobj/functions/get-class.xml 2010-08-15 08:01:54 UTC (rev 302260)
+++ phpdoc/en/trunk/reference/classobj/functions/get-class.xml 2010-08-15 09:09:43 UTC (rev 302261)
@@ -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">