michaelh613 Posted April 23, 2008 Share Posted April 23, 2008 I am receiving the following error 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 I am not using any global variables. I am using session variables from the previous page that I create. Link to comment https://forums.phpfreaks.com/topic/102595-receiving-php-globals-error-but-not-using-them/ Share on other sites More sharing options...
BlueSkyIS Posted April 23, 2008 Share Posted April 23, 2008 code? Link to comment https://forums.phpfreaks.com/topic/102595-receiving-php-globals-error-but-not-using-them/#findComment-525409 Share on other sites More sharing options...
PFMaBiSmAd Posted April 23, 2008 Share Posted April 23, 2008 This is a common problem (this is the third time it has been asked in the past 2 days on this forum.) It is a bug in php (like the error states.) It is triggered when register globals are off you have code with a session variable and a program variable by the same name and you set the program variable to either a null or a zero. Read this - http://www.phpfreaks.com/forums/index.php/topic,193575.msg870830.html#msg870830 Link to comment https://forums.phpfreaks.com/topic/102595-receiving-php-globals-error-but-not-using-them/#findComment-525419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.