From 2779e0140aaea4368df0f9cbebdd166bd2dfaba1 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Sun, 15 Aug 2010 09:09:43 +0000 Subject: [PATCH] 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 --- reference/classobj/functions/get-class.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reference/classobj/functions/get-class.xml b/reference/classobj/functions/get-class.xml index 7a2d4fb069..dd372ac318 100644 --- a/reference/classobj/functions/get-class.xml +++ b/reference/classobj/functions/get-class.xml @@ -23,7 +23,7 @@ object - The tested object + The tested object. This parameter may be omitted when inside a class. @@ -37,12 +37,16 @@ instance. Returns &false; if object is not an object. + + If object is omitted when inside a class, the + name of that class is returned. + &reftitle.errors; - If get_class() is called with anything other than an object, an E_WARNING - level error is raised. + If get_class is called with anything other than an + object, an E_WARNING level error is raised.