Re: [PHP] Stopping objects from auto-serializing
- From: jochem@xxxxxxxxxxxxx (Jochem Maas)
- Date: Wed, 31 Oct 2007 07:32:09 +0100
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 register_globals is where the
auto-serialization comes from, but it seems to be closely related at
least and I'm not in my best form today...
I tried putting "php_flag register_globals off" into an .htaccess file,
but that throws an Apache misconfiguration error.
Using set_ini() doesn't seem to do anything either.
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?
also try:
php_admin register_globals 0
Any advise on how to turn serialization off without dabbling with the
configuration file?
why, what are you doing? show us the code?
.
Chrs,
Dav
- Follow-Ups:
- Re: [PHP] Stopping objects from auto-serializing
- From: David Christopher Zentgraf
- Re: [PHP] Stopping objects from auto-serializing
- References:
- Stopping objects from auto-serializing
- From: David Christopher Zentgraf
- Stopping objects from auto-serializing
- Prev by Date: Re: [PHP] Stopping objects from auto-serializing
- Next by Date: Re: [PHP] Stopping objects from auto-serializing
- Previous by thread: Re: [PHP] Stopping objects from auto-serializing
- Next by thread: Re: [PHP] Stopping objects from auto-serializing
- Index(es):
Relevant Pages
|