PHP warning: global variables as a source of data
Posted: Fri Apr 11, 2008 4:10 pm
We get this PHP warning intermittently in a shared hosting error log, running PHP 5.2.5 under Linux:
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
There are about a dozen PHP scripts in the folder. They run up to 250 times a day, but never generate
more than 5 or ten of such warnings a day. As you can see, the warning does not identify the script
which generated it.
PHP Designer does not issue these warnings on these scripts. We do not see them where the scripts are developed and tested (under IIS).
How do we find the script(s) responsible for this warning? What should we be looking for?
pzb
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
There are about a dozen PHP scripts in the folder. They run up to 250 times a day, but never generate
more than 5 or ten of such warnings a day. As you can see, the warning does not identify the script
which generated it.
PHP Designer does not issue these warnings on these scripts. We do not see them where the scripts are developed and tested (under IIS).
How do we find the script(s) responsible for this warning? What should we be looking for?
pzb