> -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)
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
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[
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
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
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
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.
..
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
8 matches
Mail list logo