Posted by Henk verhoeven on 04/12/07 22:36
Maybe you are using php4 where lister uses php5?
Alvaro G. Vicario schreef:
> *** lister escribió/wrote (12 Apr 2007 07:53:54 -0700):
>> $Foo = new CFoo();
>> $Foo->Bar = 5;
>>
>> $_SESSION['foo'] = $Foo;
>> $_SESSION['bar'] = $Foo->Bar;
>>
>> $Foo->Bar = 10;
>>
>> echo $Foo->Bar;
>> echo $_SESSION['foo']->Bar;
>> echo $_SESSION['bar'];
>>
>> outputs
>> 10
>> 10
>> 10
>
> In my system, this code prints:
>
> 10
> 10
> 5
>
> A wild guess... register_globals set to on?
>
Navigation:
[Reply to this message]
|