Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP 7.2 Essentials

Peter Kokot
November 28, 2017

PHP 7.2 Essentials

PHP 5 is dead. Long live PHP 7. A new version 7.2 is just around the corner and it’s time to upgrade.

Peter Kokot

November 28, 2017
Tweet

More Decks by Peter Kokot

Other Decks in Technology

Transcript

  1. Agenda PHP 5 is dead. Long live PHP 7. A

    new version 7.2 is just around the corner and it’s time to upgrade. You will learn state of the art PHP features and how to safely upgrade your projects. • PHP versions • Why upgrading? • PHP 7.2 new features • Removed features
  2. PHP 5 → PHP 7 PHP versions stats 2017.2 edition:

    https://seld.be/notes/php-versions-stats-2017-2-edition
  3. New PHP 7.2 features • New bundled extension - sodium

    • New object type • Extension loading by name • Allow abstract method overriding • Password hashing with Argon2 • Extended string types for ext/PDO • Additional emulated prepares debugging information for ext/PDO
  4. Password hashing with Argon2 PHP needs to be compiled with

    --with-password-argon2 configure option
  5. How to upgrade • Check all the changes at http://php.net/manual/en/migration72.php

    • Follow and use PHP 7 compatibility checker from https://github.com/sstalle/php7cc • Ubuntu repositories: Ondřej Surý • Fedora/CentOS/RHEL: https://rpms.remirepo.net/ • Docker official images https://hub.docker.com/_/php/ • Docker PHP.earth images for Alpine Linux: https://php.earth/docs/linux/alpine •
  6. Exakat A real time PHP static analyser from PHP 5.2

    to PHP 7.2 https://www.exakat.io/