From: http://www.zettai.net/Forums/06/1067798714
Q:
I have installed gallery from gallery.sf.net. I get this warning when I run it... anyone know what might be the problem? Where should I set these variables? " Powered by Gallery v1.4-pl2 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 "
A:
see Gallery FAQ C18: C.18. Why do I get this warning: Your script possibly relies on a session side-effect which existed until PHP 4.2.3?
In PHP 4.2.3, they made a change to the way that the session code works that results in PHP generating a warning when a session is created. In order to resolve this, we have to update some code in Gallery. This warning has no effect, except that it shows upon screen. You can make it go away by editing your php.ini and setting
session.bug_compat_warn to off
and restart Apache.
If you don't have access to php.ini, add this line to your .htaccess
php_flag session.bug_compat_warn off
This should be fixed in future versions of Gallery.
regards