From c9299a3d52ffe11a4a36763f6c735d124fab3101 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 10 Dec 2003 17:45:56 +0000 Subject: [PATCH] Ugly global $$obj git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146141 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/classobj/reference.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reference/classobj/reference.xml b/reference/classobj/reference.xml index 4d65d781a3..afa25bf010 100644 --- a/reference/classobj/reference.xml +++ b/reference/classobj/reference.xml @@ -1,5 +1,5 @@ - + Class/Object Functions Classes/Objects @@ -134,8 +134,7 @@ function print_methods($obj) { } 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 {