Hey everyone, we're currently looking at moving from PHP 4.x to PHP 5, and just wanting to double check whether we're likely to encounter any issues as a result of this, as we run a range of Drupal 5 and Drupal 6 websites...

My understanding is that both Drupal 5 and 6 should run fine under PHP 5.x ? Can anyone offer any words of advice, or your experience with moving to PHP5 as a Drupal site owner?

Thanks!

Comments

vm’s picture

Only thing I can think of is editing settings.php @ $db_url where mysql can now be mysqli with PHP5

cog.rusty’s picture

No problem switching to PHP5. Actually PHP5 is better tested with Drupal these days, and it has more sensible default settings.

Related support questions that I see sometimes:
- A site had a custom setting for PHP4 (such as memory_limit or upload_max_filesize) and the user forgot to do the same for PHP5.
- The $db_url line Drupal's settings.php files used a mysql:// connection string which needed to be changed to mysqli://

There is an one-in-a-thousand probability that you have a rare old module written to work with PHP4 only. Also some very old non-drupal scripts may have problems, if you are using any.

mediafrenzy’s picture

Thanks for the info so far, this is good stuff!

Any other PHP 5 upgrade experiences or things to watch out for, please let us know.