From:             jcobb at reports dot net
Operating system: win 2k
PHP version:      4.3.1
PHP Bug Type:     Session related
Bug description:  side effect in 4.2.3

tracking down the problem with the warning message:

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, 

i've found another strange observation: people are reporting problems with
their settings in php.ini, e.g. setting bug_compat_warn=off will not make
the message go away. 

the message WILL indeed disappear, but only if the server is freshly
restarted and no session file is present. given example:

php.ini: 
session.bug_compat_42 = 1
session.bug_compat_warn = Off

code used:
session_start();
if (! session_is_registered("foobar")) { print "registering";
session_register("foobar"); $foobar=1; }

clear all session files; restart server; reload > no warning.
then: remove the session file that was just created;
reload > warning reappears and will remain no matter 
what you do. 

how does this make sense? there should be no difference between the first
call and the second. if the session file is missing, it's missing and a
new one should be generated. 

i've reproduced this on 3 different systems and could not believe it. can
you check if there is a flag that messes things up after displaying the
message for the first time? 





-- 
Edit bug report at http://bugs.php.net/?id=22769&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22769&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22769&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22769&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22769&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22769&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22769&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22769&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22769&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22769&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22769&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22769&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22769&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22769&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22769&r=gnused

Reply via email to