PHP 5.3.0RC2

View: New views
2 Messages — Rating Filter:   Alert me  

PHP 5.3.0RC2

by Phil Driscoll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've just been testing my installation of Squirrelmail (1.4.17) on the latest
release candidate for PHP5.3.0. It appears to work ok, except that on my
development machine (which has display_errors set to on in my php.ini)
SquirrelMail no longer works because of the output of multiple instances of a
warning message:
Deprecated: Function session_unregister() is deprecated
in ...functions/global.php on line 249
followed by the inevitable
Warning: Cannot modify header information - headers already sent by...

I'm back up and running by turning off display_errors in my apache config for
the SquirrelMail directory, but it is obviously more convenient to have
errors displayed when developing plugins.

I'm not sure of the repercussions elsewhere, but I suspect that it may be ok
to fix this by simply removing the call to session_unregister in
sqsession_unregister since this already unsets $_SESSION[$name].

PHP's session_unregister() function disappears completely as of PHP 6, so I
guess this needs to be fixed in SquirrelMail before it turns into a fatal
error.

Cheers
--
Phil Driscoll

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: PHP 5.3.0RC2

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I've just been testing my installation of Squirrelmail (1.4.17) on the latest
> release candidate for PHP5.3.0. It appears to work ok, except that on my
> development machine (which has display_errors set to on in my php.ini)
> SquirrelMail no longer works because of the output of multiple instances of a
> warning message:
> Deprecated: Function session_unregister() is deprecated
> in ...functions/global.php on line 249
> followed by the inevitable
> Warning: Cannot modify header information - headers already sent by...
>
> I'm back up and running by turning off display_errors in my apache config for
> the SquirrelMail directory, but it is obviously more convenient to have
> errors displayed when developing plugins.

If you're developing any to share with the community, please make sure
to give us a heads up ahead of time - see
http://www.squirrelmail.org/docs/devel/devel-4.html#ss4.1

> I'm not sure of the repercussions elsewhere, but I suspect that it may be ok
> to fix this by simply removing the call to session_unregister in
> sqsession_unregister since this already unsets $_SESSION[$name].
>
> PHP's session_unregister() function disappears completely as of PHP 6, so I
> guess this needs to be fixed in SquirrelMail before it turns into a fatal
> error.

You're right.  Thank you for letting us know.  I've already removed it
in 1.5.2SVN, and will remove it from 1.4.19SVN after 1.4.18 is out.

Cheers,

Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel