cvs: phpdoc /en/reference/classobj reference.xml

From: Date: Wed, 10 Dec 2003 17:45:56 +0000
Subject: cvs: phpdoc /en/reference/classobj reference.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357328@lists.php.net to get a copy of this message
vrana Wed Dec 10 12:45:56 2003 EDT Modified files: /phpdoc/en/reference/classobj reference.xml Log: Ugly global $$obj Index: phpdoc/en/reference/classobj/reference.xml diff -u phpdoc/en/reference/classobj/reference.xml:1.8 phpdoc/en/reference/classobj/reference.xml:1.9 --- phpdoc/en/reference/classobj/reference.xml:1.8 Sat Aug 16 14:59:11 2003 +++ phpdoc/en/reference/classobj/reference.xml Wed Dec 10 12:45:56 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <reference id="ref.classobj"> <title>Class/Object Functions</title> <titleabbrev>Classes/Objects</titleabbrev> @@ -134,8 +134,7 @@ } function class_parentage($obj, $class) { - global $$obj; - if (is_subclass_of($$obj, $class)) { + if (is_subclass_of($GLOBALS[$obj], $class)) { echo "Object $obj belongs to class ".get_class($$obj); echo " a subclass of $class\n"; } else {

« previous php.doc (#969357328) next »