moodLearning Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
php-upgrade-cheatsheet [2018/01/04 14:21]
serbizadmin [Cheatsheet for Upgrading PHP Sites]
php-upgrade-cheatsheet [2020/06/13 23:10] (current)
Line 4: Line 4:
 \\ \\
 Not that many organizations are prepared to deal with the change. So the [[https://moodlearning.com|moodLearning]] team has prepared a cheatsheet to cover some important technical changes to make it easier for people to transition to the new PHP  version. Not that many organizations are prepared to deal with the change. So the [[https://moodlearning.com|moodLearning]] team has prepared a cheatsheet to cover some important technical changes to make it easier for people to transition to the new PHP  version.
 +\\
 +\\
 +{{ ::php_upgrade_cheatsheet.jpg?600 |}}
 +
 ===== PHP 5.x to 7 ===== ===== PHP 5.x to 7 =====
-===== Deprecated Functions in php5 =====+==== Deprecated Functions in php5 ====
  
  
Line 25: Line 29:
 **Fix for php7** **Fix for php7**
  
-if your class has a constructor having the same name as your class name, then it is now deprecated in PHP 7. Change constructor to <nowiki>__construct</nowiki>+If your class has a constructor having the same name as your class name, then it is now deprecated in PHP 7. Change constructor to <nowiki>__construct</nowiki>
  
 Sample Sample
Line 42: Line 46:
    
 ?></code> ?></code>
 +\\
 +\\
 +
 +----
 +
 ===== See Also===== ===== See Also=====
   * [[http://php.net/manual/en/migration70.changed-functions.php|Changed PHP Core Functions]]   * [[http://php.net/manual/en/migration70.changed-functions.php|Changed PHP Core Functions]]