On Tue, Jan 14, 2003 at 09:20:10AM -0600, Jonathan Angliss wrote: > 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. > > > I saw messages in the error log like this: > > > [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. If it helps, here's the text associated with the session.bug_compat_42 option: ; PHP 4.2 and less have an undocumented feature/bug that allows you to ; to initialize a session variable in the global scope, albeit register_globals ; is disabled. PHP 4.3 and later will warn you, if this feature is used. ; You can disable the feature and the warning seperately. At this time, ; the warning is only displayed, if bug_compat_42 is enabled. > > I then turned on session.bug_compat_42 and the related warning and found > > these errors in the log file: > > > [error] PHP Warning: session_write_close() [<a > > >href='http://www.php.net/function.session-write-close'>function.session-write-close</a>]: > > 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 > > /usr/local/squirrelmail/squirrelmail-1.2.10/src/redirect.php on line > > 170 > > I plan to be looking into PHP 4.3 to work out what major changes > were made in the handling of PHP. What you might want to try is > upgrading to either the 1.2.11[cvs] version, or the 1.4[cvs] > version. Note that the 1.2 series will be going away soon, but the > 1.2.11[cvs] version has some session issue fixes that may have > worked around this. I tried both of these last night with the same results. 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. Again, I'll try to look into this with more detail tonight. -Dave ------------------------------------------------------- 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
