Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP.net:
PHP 7.1.8 Released
Aug 11, 2017 @ 11:56:36

The PHP.net site has posted an announcement about the latest language release in the PHP 7.1.x series: PHP 7.1.8:

The PHP development team announces the immediate availability of PHP 7.1.8. This is a bugfix release, with several bug fixes included. All PHP 7.1 users are encouraged to upgrade to this version.

Fixes in this release include changes in DateTime handling, OpenSSL, PDO, SQLite3 and Opcache fixes. As always you can download this latest release from the main downloads page (source) or from windows.php.net for the Windows executables. You can view the full list of the changes in this release and their related bugs in the complete Changelog.

tagged: language release bugfix php71

Link: http://php.net/index.php#id2017-08-03-3

Joe Ferguson:
Install and Configure PHP 7.1 on Cloud 9 Workspaces
Jul 07, 2017 @ 09:32:03

Joe Ferguson has a new post to his site showing you how to install PHP 7.1 on a Cloud9 workspace to get the latest features of PHP (they run PHP 5.5 by default).

July 8th I’m giving a general PHP training day at the Fedex Institute of Technology and because I’m targeting absolute beginners I wanted to use Cloud 9. Cloud 9 is an online editor that gives you a full linux workspace to build your project in. The first thing I noticed was the container Cloud 9 provides is running PHP 5.5.

He provides the contents of the bash script you can run via the Cloud9 interface that will install PHP 7.1 and several dependencies. It also updates a few configurations to work with PHP 7.1 and restarts the Apache instance to have it all take effect. He's posted this as a repository on GitHub to make it even easier and shows how to set up the Cloud9 workspace using it as a base.

tagged: install configure cloud9 workspace install php71 tutorial

Link: https://www.joeferguson.me/install-and-configure-php-7-1-on-cloud-9-workspaces/

PHP.net:
PHP 7.1.6 Released
Jun 09, 2017 @ 11:07:38

The PHP development team has officially announced the latest release in the PHP 7.1.x series for the language: PHP 7.1.6.

The PHP development team announces the immediate availability of PHP 7.1.6. Several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade to this version.

Bugs fixed in this release are functionality related to MySQLi, Opcache, phar handling, xmlreader and the language core. As always, you can download this latest version either from the main downloads page (source) or from windows.php.net for the Windows binaries. If you're interested in the specific bugs that were fixed and the issues related, check out the full Changelog.

tagged: language release php71 bugfix

Link: http://php.net/index.php#id2017-06-08-3

Zend Framework Blog:
Zend Framework and PHP 7.1
Jun 07, 2017 @ 12:18:45

On the Zend Framework blog Matthew Weier O'Phinney has a new post covering the state of the Zend Framework project and how it relates to PHP 7.1.

When we announced Zend Framework 3 last year, one of the changes was setting the minimum supported PHP version to 5.6. Our initial plan was to support 5.6 until it reaches end-of-life, which occurs 31 December 2018.

PHP 5.6, however, stopped receiving active support almost five months ago, on 19 Jan 2017. This means that it is no longer receiving bugfixes, only critical security fixes. As such, a number of contributors have been pushing for us to up our minimum supported version to support only actively supported PHP versions, which would mean only PHP 7 versions.

[...] Our view is that the new features in PHP 7 will allow us to simplify our code dramatically, reduce bugs (primarily by increasing type safety), make our code more easily maintainable (less code required to check types; less repetitive code), provide stronger and more predictable interfaces to our users, and simultaneously provide users access to more and better language features.

He also talks briefly about their thoughts about HHVM support and if it makes sense to keep moving forward with it (given the small percentage of their user base). He then lays out a plan for the framework moving forward that includes the release of PHP 7.1+ only components and security patches on 5.6 versions until end of life.

tagged: zendframework php71 version future roadmap php56 hhvm project

Link: https://framework.zend.com/blog/2017-06-06-zf-php-7-1.html

Sebastian De Deyne:
The List Function & Practical Uses of Array Destructuring in PHP
May 15, 2017 @ 10:26:37

Sebastian De Deyne has written up a post to his site spotlighting PHP's list function and showing how it can be used for "array destructuring" and how recent changes in PHP 7.1.x make it more useful.

PHP 7.1 introduced a new syntax for the list() function. I've never really seen too much list() calls in the wild, but it enables you to write some pretty neat stuff.

This post is a primer of list() and it's PHP 7.1 short notation, and an overview of some use cases I've been applying them to.

He starts with a basic introduction to the list function and how it assigns out variables based on an array. He then shows examples of the updates that came with PHP 7.1, allowing you to specify the key from an array to more selectively extract only the value you want. Three "exhibits" are then provided, showing actual use cases for this functionality: basicunpacking examples, creating tuples and handling multiple return values.

tagged: list function use array destructuring php71 functionality tutorial tuple returnvalue

Link: https://sebastiandedeyne.com/posts/2017/the-list-function-and-practical-uses-of-array-destructuring-in-php

PHP.net:
PHP 7.1.5 Released
May 12, 2017 @ 11:47:16

On the main PHP.net site they've posted the announcement about the latest release in the PHP 7.1.x series: PHP 7.1.5. This is a bugfix release and problems were fixed in:

  • core functionality
  • date handling
  • GD graphics functionality
  • internationalization
  • OpenSSL
  • phar creation

You can download this latest release from either the main downloads page (source releases) or windows.php.net for the Windows binaries. If you're curious about the full set of changes, you can check out the full Changelog for this release.

tagged: language release bugfix php71

Link: http://php.net/archive/2017.php#id2017-05-11-2

PHP.net:
PHP 7.1.4 Released
Apr 14, 2017 @ 09:23:58

On the main PHP.net site they've posted an announcement about the latest release in the PHP 7.1.x series - PHP 7.1.4:

The PHP development team announces the immediate availability of PHP 7.1.4. Several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade to this version.

Bugfixes in this release include changes in Core, Apache, DOM, Opcache and OpenSSL functionality. As always, this latest release can be downloaded from the main downloads page on the PHP.net site (source) and windows.php.net for the Windows binaries. If you'd like to view the full list of changes and see links to the bugs they fix check out the full Changelog.

tagged: language release bugfix php71

Link: http://php.net/index.php#id2017-04-13-2

PHP.net:
PHP 7.1.3 Released
Mar 17, 2017 @ 11:17:21

The PHP.net site has posted an announcement about the latest release in the PHP 7.1.x series - PHP 7.1.3:

The PHP development team announces the immediate availability of PHP 7.1.3. Several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade to this version.

Bugs fixed in this version include changes in core code, Apache support, GD image handling, OpenSSL changes and correcting bugs in the standard libraries. As always you can download this latest release either from the main PHP.net site (source) or from windows.php.net (Windows binaries).

tagged: language release bugfix php71

Link: http://php.net/index.php#id2017-03-16-2

PHP.net:
PHP 7.1.2 Released
Feb 20, 2017 @ 12:15:32

The official PHP.net site has announced the release of the latest version in the PHP 7.1.x series: PHP 7.1.2:

The PHP development team announces the immediate availability of PHP 7.1.2. Several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade to this version.

Bugs fixed include changes for DOM handling, FastCGI, hashing (adding http://php.net/hash_hkdf function), MySQL, OpenSSL and a good number of other locations. You can view the Changelog for the complete list. As always you can get this latest version from the main downloads page (source release) or windows.php.net for the Windows binaries.

tagged: language version release php71 minor bugfix

Link: http://php.net/index.php#id2017-02-17-1

Sameer Borate:
Handling multiple exceptions in PHP 7.1
Feb 14, 2017 @ 09:40:16

Sameer Borate has a new post to his site today showing how you can handle multiple exceptions in PHP 7.1, the latest release in the PHP 7.x series.

Exception handling is one of the ways in which modern languages handle errors. PHP usually handles exception in a separate catch block for each different type of exception. Below is a example exception code that uses three custom exceptions ‘MyFooException’, ‘MyBarException’ and ‘MyBazException’ that is later handled in a ‘try’ block.

He includes a bit of code showing the "old way" of doing it with multiple catch statements, one for each type of exception. With PHP 7.1 however, you can collapse all of those down into a single catch statement and type hint each type you want caught (pipe delimited). This can make for much cleaner code and a lot less repetition in your error/exception handling.

tagged: multiple exception php71 try catch single tutorial

Link: http://www.codediesel.com/php/handling-multiple-exceptions-in-php-7-1/