Sebastian Bergmann wrote:
> As I initially stated, I'm trying this with PHP 4.0.8-dev.
The following script works with both register_globals enabled and
disabled and PHP 4.0.8. Can't test it right now with pre-4.0.7, but it
should work, too.
Now, is this the simplest solution pos
Sascha Schumann wrote:
> That depends on your PHP version. $foo and
> $HTTP_SESSION_VARS["foo"] should have been aliases for some
> time. The behaviour was broken though for a period of time.
As I initially stated, I'm trying this with PHP 4.0.8-dev.
--
Sebastian Bergmann
ht
> Sebastian Bergmann wrote:
> > Rasmus Lerdorf wrote:
> >> This is expected behaviour as far as I am concerned.
> >
> > Sascha just enlightened me on #php.de.
>
> Something I still don't understand:
>
> session_register("count");
> $HTTP_SESSION_VARS["count"]++;
> echo $HTTP_SE
> The above script works, ie. outputs an increasing number during
> subsequent requests, when register_globals is turned off, but not,
> ie. showing always '1', when it is turned on.
That depends on your PHP version. $foo and
$HTTP_SESSION_VARS["foo"] should have been aliases for s
Sebastian Bergmann wrote:
> Rasmus Lerdorf wrote:
>> This is expected behaviour as far as I am concerned.
>
> Sascha just enlightened me on #php.de.
Something I still don't understand:
The above script works, ie. outputs an increasing number during
subsequent requests, when register
Rasmus Lerdorf wrote:
> This is expected behaviour as far as I am concerned.
Sascha just enlightened me on #php.de.
Never mind,
Sebastian
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.se
This is expected behaviour as far as I am concerned. When
register_globals is off the $session[] array is completely separate from
$HTTP_SESSION_VARS['session'] so doing a session_register('session') is
replacing the existing registered variable with this completely new one.
-Rasmus
On Fri, 5 O
I just noticed the following with PHP 4.0.8-dev, built from CVS today:
When register_globals is enabled, this script
';
print_r($session);
?>
outputs an array that grows with each request to the script.
When register_globals is disabled, it only outputs the timest
Hi,
i have found a great problem (but small fix) with the generation of
sessions when register_globals=off. this is also described in bug #8772.
this bug is in 4.0.4 and 4.0.4pl1, but i have not checked the lastest cvs.
the problem in ext/session/session.c is, that the session data of a new
ses