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

The Latest in PHP: January 2019 Edition

Chris Gmyr
January 17, 2019

The Latest in PHP: January 2019 Edition

Markdown file can be found here https://github.com/trianglephp/latest-in-php

Chris Gmyr

January 17, 2019
Tweet

More Decks by Chris Gmyr

Other Decks in Programming

Transcript

  1. PHP Supported Versions 4 5.6 & 7.0 are EOL! 4

    7.1 Security Only until Dec 1, 2019 4 7.2 & 7.3 Active Development 4 7.4 is underway (~Dec 2019) http://php.net/supported-versions.php
  2. PHP Releases 4 5.6.40 & 7.0.33 Final Security Release 4

    7.1.26 4 7.2.14 4 7.3.1 (opcache) Links: 4 http://php.net/ChangeLog-7.php 4 http://php.net/ChangeLog-5.php
  3. RFCs - Deprecations for PHP 7.3 4 Undocumented mbstring function

    aliases 4 String search functions with integer needle (type juggling issue) 4 fgetss() function and string.strip_tags filter (duplicate of strip_tags() + stream) 4 FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED (covered by other consts, or unused) https://wiki .php.net/rfc/deprecationsphp7_3
  4. What's new in 7.3? JSON_THROW_ON_ERROR // 7.2 json_decode("{"); json_last_error() ===

    JSON_ERROR_NONE // the result is false json_last_error_msg() // The result is "Syntax error"
  5. What's new in 7.3? JSON_THROW_ON_ERROR // 7.3 use JsonException; try

    { $json = json_encode("{", JSON_THROW_ON_ERROR); return base64_encode($json); } catch (JsonException $e) { throw new EncryptException('Could not encrypt the data.', 0, $e); }
  6. What's new in 7.3? is_countable() // 7.2 if (is_array($people) ||

    $people instanceof Countable) { // $people is countable }
  7. Lookahead to 7.4 4 Preloading (files in-memory) 4 Typed properties

    (public string $name;) 4 ext-hash always enabled 4 Password Hashing Registry 4 Null Coalescing Assignment Operator // current $data['date'] = $data['date'] ?? new DateTime(); // new $data['date'] ??= new DateTime(); https://stitcher.io/blog/new-in-php-74
  8. Latest Versions 4 Laravel: 5.7.21 4 Symfony: 4.2.2 4 Drupal:

    8.6.7 4 PHPStorm: 2018.3.3 4 VSCode: 1.30.2
  9. PHP Conferences - January Day Camp 4 Developers: Beyond Performance

    January 18, Online https://phpa.me/daycamp-4-devs
  10. PHP Conferences - February SunshinePHP 2019 February 7–9, Miami, FL

    http://sunshinephp.com PHP UK Conference 2019 February 20–22, London, England https://www.phpconference.co.uk
  11. Nomad PHP US: Testing Like You've Never Tested Before (Because

    You Haven't) presented by Steve Grunwell January 17, 2019 at 09:00pm EST UK: Advanced WordPress: Plugin Creation presented by Peter MacIntyre January 17, 2019 at 02:00pm EST https://nomadphp.com/
  12. Open Call for Papers Dutch PHP CFP Deadline: January 28,

    2019 June 6 - 8, Amsterdam https://www.phpconference.nl/ PHPKonf 2019 CFP Deadline: January 31, 2019 May 4, 2019, Istanbul, Turkey https://cfp.phpkonf.org
  13. Notable News & Articles 4 Laracon Online 2019 ($12 March

    6th) 4 104: Jonathan Reinink - Pushing More Work to the Database 4 Faster Code Coverage 4 Writing better Drupal code with static analysis using PHPStan 4 Tips to Speed up Your Phpunit Tests 4 Q&A on the Book Refactoring - Second Edition
  14. Next Month @ TrianglePHP TDB Presented By YOU?!?! Thursday, February

    21, 6pm @ Atlantic BT Need an Idea? 4 Testing 4 Security 4 Performance 4 Git
  15. Tonight @ TrianglePHP Apps Without Ops - Web Development in

    Google Cloud Platform Presented By - Chris Deaton Thank you to Atlantic BT for hosting and refreshments!