[PHP] Please save me from insanity - PHP4 / OO

2004-12-05 Thread Ben
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,

Re: [PHP] Please save me from insanity - PHP4 / OO

2004-12-05 Thread John Holmes
Ben wrote: 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! How about you