When upgrading PHP version (e.g. from PHP 5.4 to 5.5)
PHP.net (the official site) may remove some old functionalities.
Before removal, it may generate some DEPRECATED messages.

For example –

  • In PHP 5.3, deprecated functions includes magic_quote and register_global . In PHP 5.4  magic_quote and register_global were removed.
  • In PHP 5.5, deprecated functions includes mysql driver (please use mysqli or PDO driver)。 In PHP 7.0 , mysql driver will be removed

When customers encounter deprecated message, customers are recommended to backup and update the web application to latest.
Or temporarily use error_reporting to suppress those deprecated messages.

error_reporting(E_ALL &~ E_NOTICE &~ E_DEPRECATED);

For details, you may refer to –
http://php.net/manual/en/migration53.deprecated.php
http://php.net/manual/en/migration54.deprecated.php
http://php.net/manual/en/migration55.deprecated.php
http://php.net/manual/en/migration56.deprecated.php
http://php.net/manual/en/migration70.deprecated.php
http://php.net/manual/en/function.error-reporting.php
http://php.net/manual/en/appendices.php

 

Pin It on Pinterest

Share This