class Ob { var $prop; } class Test { function setMe(&$ob) { $ob->prop = $this; } } $ob = new Ob(); $test = new Test(); $test->setMe($ob); if ($ob->prop) error_log("PHP is OK");
You should use "if (is_a($ob->prop, 'test'))"
Greg
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php