Jump to content

Recommended Posts

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

 

what is happening at this moment is trying to load some values into session variables.  i googled this warning and the most consistant answer is that session doesn't like null values but the values are not null.  any help?

Link to comment
https://forums.phpfreaks.com/topic/148702-any-one-ever-seen-this-warning-before/
Share on other sites

The error is a result of the way that register_globals is implemented and that even with register_globals disabled, the register_globals code is still being executed except for the final step of actually cross-populating same name post/get/cookie/session and program variables.

 

The error is triggered when you have a session variable and a program variable by the same name and one of them is being created with a null value.

 

You can set the two bits the error mentions to off to prevent the display of the error or you can use unique names for session and program variables (or wait for php6 where most of the register_globals code, except for the request variable, has finally been removed from php.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.