Skip to content

PHP version 7 is a major release that brings a variety of improvements to the language. We’ve been working to bring PHP 7 to VIP and in the coming weeks we’ll provide some details about how to prepare your VIP sites and the specific timing of the update.

Until then, please begin testing your theme and plugin code against PHP 7 as soon as possible. If there are parts of your theme or plugin code that are not compatible with PHP 7, there may be serious functionality problems with any sites using that code once this update is complete.

Some of you may have already had tickets opened by our team to replace the POSIX Regex functions that were removed in PHP 7.0.0, such as:

  • ereg_replace — Replace regular expression
  • ereg — Regular expression match
  • eregi_replace — Replace regular expression case insensitive
  • eregi — Case insensitive regular expression match
  • split — Split string into array by regular expression
  • spliti — Split string into array by regular expression case insensitive
  • sql_regcase — Make regular expression for case insensitive match

Please make sure your development team reviews and acts on any PHP 7 tickets from VIP.

There are more changes in PHP 7 that you should be testing and verifying your code against. Some of the most common include:

  • PHP 4 constructors are now deprecated
  • Function argument(s) returned by “func_get_args” might have been modified
  • Regular expression modifier “e” has been removed and can no longer be used
  • Possible internal array pointer access/modification in by-value foreach loops
  • Potential iteration over the same array in nested by-reference foreach loops

Further information on the full set of changes can be found here.

Stay tuned to the VIP Lobby for more information coming soon about related changes to VIP Quickstart, how to test your WordPress.com VIP and VIP Go sites, and other helpful details. If you have any questions, please open a support ticket.

Responses

Your email address will not be published. Required fields are marked *