Here's some more information.  I added debug output to
sqsession_register and sqsession_unregister

register gettext_php_loaded
unregister gettext_php_loaded
error unsetting _SESSION gettext_php_loaded
Notice: Undefined variable: _SESSION in /mnt/www/squirrelmail-1.2.10/src/global.php on 
line 113
register gettext_php_domain
unregister gettext_php_domain
register gettext_php_dir
unregister gettext_php_dir
register gettext_php_translateStrings
unregister gettext_php_translateStrings
register gettext_php_loaded_language
unregister gettext_php_loaded_language
register gettext_php_short_circuit
unregister gettext_php_short_circuit

which is being called from gettext.php via i18n.php

It looks like $_SESSION isn't a defined global variable.  How is that
possible?  Well I had a look around and it doesn't look like
session_start(); is being called anywhere from the login page before
the require_once('../functions/i18n.php');

Adding session_start() before that require got rid of the warning.
However I do not think this is a good patch, and suspect there are many
other places missing a session_start

Another fix I just thought of, is to change session.auto_start = 1
in php.ini.  The default was off.  This also seems to eliminate the
warning, but I'm not sure what other consequences it might have
(probably slowing down the vast majority of php scripts I have which do
not use sessions)

Anyway, seems to be a serious bug.

Thanks
Skye



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to