Re: [PHP-DEV] PHP5, objects not passed by reference?!?

2005-06-02 Thread Jean-Francois Levesque
Now I have zend.ze1_compatibility_mode to off and now it's working. Thanks! Jean-François Antony Dovgal wrote: On Thu, 02 Jun 2005 09:05:24 -0400 Jean-Francois Levesque <[EMAIL PROTECTED]> wrote: Hi! In PHP5, the objects are supposed to be passed by reference, right? I t

[PHP-DEV] PHP5, objects not passed by reference?!?

2005-06-02 Thread Jean-Francois Levesque
Hi! In PHP5, the objects are supposed to be passed by reference, right? I try to use a singleton pattern but it's not working. I just compile the lastest php version (5.0.4) and I still have the problem. My code : testvar = 1; $test2->testvar = 2; echo $test->testvar." ; ".$test2->testvar