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



Hi group,

Does anybody know what causes the following Warning?

__________________________________________________
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
__________________________________________________

Since the whole projectcode is way too much to post here, I hope somebody has a clue, so I know where to start looking.

It only happens on one Mac here in the office, and only at a certain page.
All other Sessionlogic works as intended, also on the Mac.

The server:
Apache1.3/PHP 4.3,
session.autostart is on.
Sessionstorage is files.
No register globals (of course).

The scripts use only code like this:
$_SESSION["bla"] = "something";
No session_register ancient stuff.

The Mac in question accepts cookies.
The warning is reproducable.

I work a lot with sessions, and this is the first time I see this warning on my own system.

Can anybody help me?
Where to start bughunting?

I hate the fact the Warning says: "in Unknown on line 0", which isn't helpful at all of course.

Regards,
Erwin Moller
.



Relevant Pages

  • "register_globals off" and "session side-effect"
    ... Warning: Unknown(): Your script possibly relies on a session side- ... I should replace all global variables which I care ...
    (comp.lang.php)
  • Sessions
    ... Warning: Unknown(): Your script possibly relies on a session side-effect ... My version of php is version 4.3.4 ...
    (comp.lang.php)
  • Sessions
    ... Warning: Unknown(): Your script possibly relies on a session side-effect ... My version of php is version 4.3.4 ...
    (comp.lang.php)
  • sessions
    ... Warning: Unknown(): Your script possibly relies on a session side-effect ... My version of php is version 4.3.4 ...
    (alt.php)
  • Problem with session_start
    ... I get a warning and cannot start a session. ... the php script before any HTML tags or output to the browser. ... Cannot send session cache limiter - headers already sent (output ...
    (comp.lang.php)