| 8:19 pm on Sep 15, 2006 (gmt 0)|
Add this to your php.ini and restart Apache:
|session.bug_compat_warn to off |
Or add the following to the .htaccess file
|php_flag session.bug_compat_warn off |
| 8:22 pm on Sep 15, 2006 (gmt 0)|
PHP versions 4.2.3 and lower have an undocumented feature/bug that allows you 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. This feature/bug can be disabled by disabling this directive.
I don't think it will cause any harm, but if you want, change your script.
Best of luck! ;)
| 10:14 pm on Sep 15, 2006 (gmt 0)|
Thanks for the info. Thing is I want the script to be portable without having to change register_globals and also I don't actually want to use globals.
Woah, just found the problem. I kept putting in die statements in my code starting at the end and moving up until I isolated the line that triggered the error (error was being shown at end but actually being triggerd somewhere in the middle). I was setting a certain variable, non global, non session. I re-named the variable and the error goes away. I'm using PEAR so my guess is there is an identical variable in PEAR in the global scope or something. Jeesh.
| 10:21 pm on Sep 15, 2006 (gmt 0)|
gee physics, you should know by now that PEAR sucks ;)
| 5:07 pm on Sep 16, 2006 (gmt 0)|
Guess I've just been lucky till now jatar_k ;)
| 5:15 pm on Sep 16, 2006 (gmt 0)|
I have seen that one often when you are somewhere declaring or re-declaring a session that has no persistence. Re-check each session declared and how they are passed.