I'm getting that good old session side-effect warning, and can't figure out why...
PHP 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'm not using session_register() or _unregister(), not setting any session variables to "NULL" (using unset() instead), register globals is disabled. I have some specific "global" variable declarations inside functions, but as far as I can tell none of these duplicate session variable names. And even if they did, would that cause the problem?
Would I get this if I attempted to unset() a nonexistent session variable?
It's tough because my error log doesn't tell me which file(s) it's happening in, and I don't want to display errors 'cause this is a live site. Plus it only happens every few hours - not like I'd be able to trigger it on demand.
Of course I want to solve this, but if I can't, can I set session.bug_compat_42 or session.bug_compat_warn off via .htaccess? Like "php_flag session.bug_compat_42 off" - would that syntax work?
I guess I could TRY it...but hate to break .htaccess 'cause it's doing a bunch of other things. 🙂