Re: SESSION error -> Your script possibly relies on a session side-effect which existed until PHP 4.2.3.



On Tue, 29 Apr 2008 13:33:19 +0200, Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> wrote:

Erwin Moller schreef:

<snip>

Correction: It happens on all systems (also Windows on FF).
(luckily)

Looking into it myself now, but didn't find a thing yet. :-/

Erwin Moller

Does this trigger it:
<?php
ini_set('session.bug_compat_warn',1);
ini_set('session.bug_compat_42',1);
session_start();
$_SESSION['foo'] = NULL;
$foo = "foo";
?>

If so, the warning will _not_ appear:
- if $_SESSION['foo'] exists and is not null
- there's no global variable named $foo

Lousy error message BTW. Just act as usual I'd say, turn of session.bug_compat_warn & session.bug_compat_42.
--
Rik Wasmus
.



Relevant Pages