I recently tried switching an app to PHP4 sessions and am getting an odd
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
The phplib files I am using are from CVS in late December, 2004.
I was under the impression that session4.inc, session4_custom.inc,
page4.inc, prepend.php, and local4.inc were drop-in replacements for
their PHP3 counterparts. Am I missing something?
I read a bunch of stuff that came up on a Google search for the error
and it seems to be related to using session_register and $_SESSION in
the same script. I'm not calling either, directly, just relying on
phplib ($sess->register("somevar")).
It doesn't seem to matter if I have register_globals on or off.
Any idea what I've got screwed up? Or is this a phplib bug?
Andrew
|