Hello David,
On Tuesday, January 14, 2003, David Rees wrote...
>>> I just upgraded a server running SM 1.2.10 to PHP 4.3.0. After
>>> upgrading, the prev/next and delete&prev/delete&next buttons no
>>> longer worked.
>>> [error] PHP Notice: Undefined variable: msgs in
>>> /usr/local/squirrelmail/squirrelmail-1.2.11-cvs-20030114/src/read_body.php
>>> on line 560
>> This appears because you have your error_reporting in your php.ini
>> file set to E_ALL, this displays all warnings.
> This may be true, but this particular error disappeared after setting
> session.bug_compat_42 to 1. Which should be a hint as to where to look
> for the problem.
Yes, as I said... it was the way the session was handled in 1.2.10.
Basically the message is saying this:
You cannot use $_SESSION until you start a session with
session_start();
The problem is, in some cases we do try doing that, which worked
okay in 99% of the time in 4.2 or lower. The reason it goes away
when you set that option is PHP 4.3 ignores all the 'fixed bug' in
4.3, and uses the old style in 4.2, and as such the session variable
$msgs is now set, and you don't get the error. At that point, the
next/prev and dmn plugin should work just fine.
> To reproduce, it's easy: Install PHP 4.3.0 and then run with
> php.ini-recommended in the distribution. With the -recommended ini
> file, next/prev and delete-next-etc do not work.
There was a bug in the session handling, which resulted in the
next/prev breaking, and the Delete-Move-Next from failing too. I
fixed this.
--
Jonathan Angliss
([EMAIL PROTECTED])
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
--
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