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

HHVM Blog:
The Future of HHVM
Sep 19, 2017 @ 09:45:03

The HHVM project (an alternative PHP runtime from Facebook) has made a major announcement on their blog - beginning with version 3.24 they'll no longer be trying to keep parity with the PHP language now that it has moved into PHP 7.

The HHVM team is happy about the direction PHP has taken with PHP7, and we’re proud of the role we’ve played in pushing the language and runtime to where they are today. Since the PHP community is finally saying goodbye to PHP5, we’ve decided to do so as well.

Our next LTS release, 3.24, will be cut about four months from now and will receive support for one year thereafter. It will also be the last HHVM release that commits to PHP5 support. This aligns with PHP’s own timeline of sunsetting PHP5 at the end of 2018.

[...] PHP7 is charting a new course away from PHP5, and we want to do the same, via a renewed focus on Hack. Consequently, HHVM will not aim to target PHP7. The HHVM team believes that we have a clear path toward making Hack a fantastic language for web development, untethered from its PHP origins. We’d do ourselves and our users a disservice by positioning HHVM as an uncommon, less well-documented, less compatible PHP7 runtime.

The post then lists out some of their goals for the HHVM/Hack projects moving forward including reinvesting in open source and staying focused on their needs for the platform and language. It then talks about some of the upcoming changes you can expect around support of current versions of popular PHP tools and work on tools created specifically for Hack.

tagged: hhvm facebook platform hack language project goals php5 php7

Link: http://hhvm.com/blog/2017/09/18/the-future-of-hhvm.html

PHP.net:
PHP 7.2.0 Release Candidate 2 Released
Sep 15, 2017 @ 10:48:28

On the PHP.net site they've posted an announcement about the latest Release Candidate of the language for the PHP 7.2.x series: PHP 7.2.0 Release Candidate 2.

The PHP development team announces the immediate availability of PHP 7.2.0 RC2. This release is the second Release Candidate for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

[...] For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

You can download this latest pre-release version from either the source downloads or Windows site for the Windows binaries. The next release candidate will be posted on September 28th according to the release schedule with a few more to follow to work out all of the potential issues in this next major release of the language.

tagged: php language release php72 releasecandidate php72rc2 preview

Link: http://php.net/index.php#id2017-09-14-1

Martin Hujer:
PHP 7.2 is due in November. What's new?
Sep 12, 2017 @ 10:15:58

In a new post to his site Martin Hujer looks ahead at the next major release for the PHP language - PHP 7.2 - and what new features and changes are coming with it.

PHP 7.2 is planned to be released on 30th November 2017 (see the timetable). And it comes with two new security features in the core, several smaller improvements and some language legacy clean-ups. In the article, I will describe what the improvements and changes are. I read the RFCs, discussions on internals and PRs on Github, so you don't have to.

Among the changes he lists are updates like:

  • Argon2 Password Hashing
  • Make Libsodium a Core Extension
  • Object typehint
  • Counting of non-countable objects

He also lists out some of the things that will be deprecated in 7.2 including parse_str without a second argument, create_function, mbstring.func_overload and asset with a string argument. You can check out these and other other changes coming (along with code examples) in the full post.

tagged: php72 language release upcoming feature deprecation overview

Link: https://blog.martinhujer.cz/php-7-2-is-due-in-november-whats-new/

Laravel NewS:
Clean Code Concepts Adapted for PHP
Sep 07, 2017 @ 09:58:29

The Laravel News site has a new post sharing the application of "clean code" concepts to PHP with a few handy examples. These suggestions are pulled from this set of guidelines.

Clean Code PHP (jupeter/clean-code-php), is a guide based on the book Clean Code: A Handbook of Agile Software Craftmanship, a classic programming book about writing maintainable code by Uncle Bob Martin.

The clean-code-php guide is inspired by a JavaScript adaptation, clean-code-javascript with PHP-specific features.

Examples they show in the post are around unneeded context, the number of function arguments and functions doing more than one thing. They also include a word of warning about these and other "clean code" suggestions, pointing out that they're mostly matters of opinion and not hard and fast rules to enforce every time. The post ends with links to two "clean code" resources for more reading: "[Clean Code]"(https://amzn.to/2wFCjo4) and "The Clean Coder: A Code of Conduct for Professional Programmers".

tagged: clean code concept language opinion software development practices

Link: https://laravel-news.com/clean-code-php-guide

StackOverflow:
A Tale of Two Industries: How Programming Languages Differ Between Wealthy and Develo
Sep 01, 2017 @ 12:44:03

On the StackOverflow blog there's an interesting post that looks at the differences in programming languages between countries based on their current state, either a developing country or a wealthy one (or somewhere in between).

Here at Stack Overflow, we’re interested in using our data to share insights about the worldwide software development community. [...] This leads us to wonder how else programming technologies may differ between rich and poor countries, and how that affects our picture of the global software development industry. In this post, we’ll explore these differences, and show that’s it’s useful to segment the software development industry into high-income countries and the rest of the world.

All the analyses explored here were performed on 2017 so far (January-August), on the 250 tags that had the most traffic during that time.

They investigated some of the major programming languages and platforms (including PHP) and found some interesting negative and positive correlation results. The post then covers how they split the list of countries in two (wealthy vs developing) and show results of the technologies they use. They include graphs for each of the points they make and link over to their StackOverflow Insights site where you can gather statistics for evaluation of your own.

tagged: stackoverflow programming language country difference statistics

Link: https://stackoverflow.blog/2017/08/29/tale-two-industries-programming-languages-differ-wealthy-developing-countries/

PHP.net:
PHP 7.1.9 Released
Sep 01, 2017 @ 11:52:19

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

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

Bugs fixed in this release include functionality in the core of the language, cURL handling, internationalization and MySQLi functionality. You can see the full list of changes in the full Changelog. As always you can download this release from the usual places: the downloads page for the source release and windows.php.net for the Windows binaries.

tagged: language release bugfix php71

Link: http://php.net/index.php#id2017-09-01-1

PHP.net:
PHP 7.2.0 Release Candidate 1 Released
Aug 31, 2017 @ 11:54:12

As is mentioned in this new post on the PHP.net site, the first release candidate of the PHP 7.2.0 pre-release cycle has been officially released: PHP 7.2.0 RC1.

The PHP development team announces the immediate availability of PHP 7.2.0 Release Candidate 1. This release is the first Release Candidate for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

[...] For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

Changes in this release include updates in the GD image handling, PCRE's UTF-8 handling, SQLite driver update, a CURL issue wth OpenSSL detection and Internationalization changes. You can download this pre-production release from either the source download site or the Windows QA site for the Windows binaries.

tagged: language release php72 releasecandidate rc1

Link: http://php.net/index.php#id2017-08-31-1

PHP.net:
PHP 7.2.0 Beta 3 Released
Aug 17, 2017 @ 09:12:13

On the main PHP.net site they've posted the announcement of the release of the latest beta for PHP 7.2.0: PHP 7.2.0 beta 3:

The PHP development team announces the immediate availability of PHP 7.2.0 Beta 3. This release is the third and final beta for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

This development only release includes mostly bugfixes (full list here) and can be downloaded from the usual QA sites: source and Windows binaries. This is the last beta release for PHP 7.2.0. The next release in the series will be PHP 7.2.0 RC1 on August 31st.

tagged: language release php72beta3 php72 development

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

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

PHP.net:
PHP 7.2.0 Beta 2 Released
Aug 07, 2017 @ 12:16:44

The PHP.net site has posted an announcement about the release of the latest beta in the pre-releases of the PHP 7.2.0 series - PHP 7.2.0 Beta 2.

The PHP development team announces the immediate availability of PHP 7.2.0 Beta 2. This release is the second beta for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

[...] For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

As always this pre-release version is available for download from the usual QA sites: source packages and Winodws binaries. The next beta will be released on August 17th and will be the final beta version before the full release.

tagged: language release php72beta2 beta2 php72

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