Forum Moderators: coopster

Message Too Old, No Replies

PHP Error Message

Anyone know what this is

         

aaronjf

2:23 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



I got this message, but not sure what it means or what to do about it...

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

jetboy_70

3:14 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



From the PHP manual:

session.bug_compat_42 boolean
PHP versions 4.2.0 and lower have an undocumented feature/bug that allows you to to initialize a session variable in the global scope, albeit register_globals is disabled. PHP 4.3.0 and later will warn you, if this feature is used, and if session.bug_compat_warn is also enabled.

So change 'session.bug_compat_42' from 1 to 0 in php.ini (or .htaccess I imagine) to disable the warning, or preferably rewrite your code so it doesn't trigger the warning. More info here:

[php.net...]
[php.net...]

aaronjf

5:34 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



Thanks Jetboy