PHP 5.3 Update Information

Over the coming days, our servers will be getting their default PHP version switched onto the PHP 5.3 stream for all our web hosting packages. For the most part, no one should notice anything different.

Edit: You can replicate the old behaviour simply by renaming your php.ini file to .user.ini. We are automatically doing this on we upgrade each server to the new version.

Date/Time settings Error

Our testing has however shown up this error affecting some sites.

Warning: date() []: It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier.

For those of you that are familiar with php.ini files will know that you can set this variable there. And we have. There is just a small bug in PHP which unsets this settings if you use a local php.ini file to over-ride settings. Unfortunately this means that users with these files end up with no date.timezone value, and the error above.

You can fix it by adding the following value to your php.ini file or contacting our support team who will be happy to help.

date.timezone = 'Europe/Dublin'

Additional PHP Errors

Because of the same inheritance issue listed about, some sites may see additional PHP generated error messages. The easy way around this is to add the following to your folder specific php.ini file for the affected application.

error_reporting = E_ALL & ~ E_DEPRECATED

We are working to find a fix that doesn’t require user intervention and hopefully it will be in place before your server goes live with this change. As always, we will be pro-actively monitoring and updating users of any issues we notice.

Leave a comment

Your comment