Please save me from insanity - PHP4 / OO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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");
else error_log("PHP is a fucking MARE");

What is my problem here? Please help!

Thanks,
Ben

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux