RE: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread Ford, Mike
> -Original Message- > From: David Christopher Zentgraf [mailto:[EMAIL PROTECTED] > Sent: 31 October 2007 08:04 > To: PHP > Subject: Re: [PHP] Stopping objects from auto-serializing > > > After some more playing around and a lot of print_r($SESSION)&#

Re: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread David Christopher Zentgraf
After some more playing around and a lot of print_r($SESSION)'s: This specific PHP configuration seems to replace every entry in $_SESSION if a variable with the same name is used in the main script with that variable. I.e. session_start() // $_SESSION["foo"] is now "bar" $foo = "12345"; $v

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 16:16, Jochem Maas wrote: are you using session_register()? (dont) also are you setting the value in $_SESSION by reference? No and no. The only time I'm writing to $_SESSION["basket"] is by setting $_SESSION["basket"][] = "foo", I'm never touching the actual $_SESSION[

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Jochem Maas
David Christopher Zentgraf wrote: > On 31 Oct 2007, at 15:32, Jochem Maas wrote: > >> aside from this error (my guess is your not allowed to override it) I >> can't >> see the problem of serialization .. don't put the object in $_SESSION? > ... >> what are you doing? show us the code? > > I'm not

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 15:32, Jochem Maas wrote: aside from this error (my guess is your not allowed to override it) I can't see the problem of serialization .. don't put the object in $_SESSION? ... what are you doing? show us the code? I'm not putting the object in $_SESSION, but PHP apparen

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Jochem Maas
David Christopher Zentgraf wrote: > Hi, > > I'm trying to set up my PHP app at my host, but am stumbling over the > PHP configuration there. register_globals is enabled, which seems to > auto-serialize my objects into $_SESSION, which in some cases overwrites > variables in there. I'm not sure if

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 13:50, Larry Garfield wrote: Try: php_value register_globals Off Same Apache misconfiguration error. Even though the host actually requires me to enable PHP processing via an "AddHandler" .htaccess directive, php_flag/value directives are throwing an error. Weird. ..

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Larry Garfield
Try: php_value register_globals Off That should not have any impact on the $_SESSION array, but turning register globals off anyway is a good thing. On Tuesday 30 October 2007, David Christopher Zentgraf wrote: > Hi, > > I'm trying to set up my PHP app at my host, but am stumbling over the > PH

[PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
Hi, I'm trying to set up my PHP app at my host, but am stumbling over the PHP configuration there. register_globals is enabled, which seems to auto-serialize my objects into $_SESSION, which in some cases overwrites variables in there. I'm not sure if register_globals is where the auto-se