Re: Warning regarding session side-effect : puzzle



trookat schreef:
I am using php5 . the warning in question is
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0


You are doing:

session_start();
session_register("foo");
$foo = 1;

Instead of the recommended:

session_start();
$_SESSION['foo'] = 1;


JW
.



Relevant Pages

  • session side-effect which existed until PHP...
    ... I get "Warning: Unknown(): Your script possibly ... relies on a session side-effect which existed until PHP 4.2.3. ...
    (php.general)
  • Re: Warning regarding session side-effect : puzzle
    ... Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. ... Please be advised that the session extension does not consider global variables as a source of data, ... You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, ...
    (alt.php)
  • Re: [PHP] Local PHP installation conflict
    ... However I have just installed PHP, MySQL and Apache on my local ... Warning: Unknown(): Your script possibly relies on a session side-effect ...
    (php.general)
  • Re: Your new favorite website
    ... Warning: Unknown modifier / in ... · ... Previous by thread: ...
    (rec.sport.pro-wrestling)
  • Re: "register_globals off" and "session side-effect"
    ... I set the register_globals off and try to get my code working under ... Warning: Unknown(): Your script possibly relies on a session side- ... I should replace all global variables which I care ...
    (comp.lang.php)