I guess this bug needs to be fixed somehow but I'd probably just not allow
it to be defined as global. The whole reason for making it an auto-global
was so that it'll be easy to use. People know (and will know) that
$_SESSION is a global. I think your explicit marking of it as a global is
not
Can you provide a full code snippet that hangs? This code snippet doesn't
appear to hang, are you running it in a function context?
Zeev
At 14:59 21/12/2001, Andreas Aderhold wrote:
Hi All,
found a bug
this one will cause a infinte loop in 4.1:
?php
global $_SESSION; // this will cause a
Hi Andi,
I guess this bug needs to be fixed somehow but I'd probably
just not allow it to be defined as global.
Well that's of course the easiest solution. But does not solve the
problem.
The whole reason for making it an auto-global was so that
it'll be easy to use. People know (and
Hi Zeev,
Can you provide a full code snippet that hangs? This code
snippet doesn't appear to hang, are you running it in a
function context?
Either. I additionally discovered that it hangs only if the session has
not been created by a prior page call. So, deleting all /tmp/sess_*
files,