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 {

Reply via email to