Posted by Oli Filth on 12/30/05 12:46
Oli Filth said the following on 30/12/2005 10:02:
> Lüpher Cypher said the following on 30/12/2005 01:12:
>
>> So, basically I have
>>
<...SNIP CODE...>
>>
>
> Yet another situation where turning on error reporting will enable you
> to immediately find the silly mistake...
>
Ah, well this, and one of PHP 4's "special features" (read "annoying
behaviour"); the fact that:
$a = new A();
assigns a copy of the newly-created object, not a reference. Change it to:
$a =& new A();
--
Oli
[Back to original message]
|