The digest of interesting news and materials from the world of PHP No. 46 (August 3 - 24, 2014)
We offer to your attention another selection with links to news and materials.
Enjoy reading! ')
News and Releases
The latest release of the PHP 5.3 branch - PHP 5.3.29 - After 5 years after the release, support for the 5.3 branch has been officially completed. Release 5.3.29 was the last in the history and included a number of security fixes implemented earlier in branches 5.4 and 5.5. No further updates are planned. More about the history of the 5.3 branch was written by its release manager Johannes Schlüter in his post .
PHP 5.6.0RC4 - The fourth and final release candidate of the new version of the interpreter. The final release is expected on August 28th. Review of innovations 5.6 here and here .
PHP 5.5.16 , 5.4.32 - Updates on current branches. By the way, the next release of the 5.4 branch will be the latest release, which contains not only security fixes (more in the internals ). Thus, together with release 5.6, the practice of two current branches and one branch with security support will continue.
RFC: Include PHPNG in the master branch - Since PHPNG is already fairly stable, it was suggested to include the former experimental PHPNG branch in the master, and thus make the new implementation the basis of PHP 7. The proposal is almost unanimously accepted and already implemented , which means if everything goes according to plan, the world will see PHP 7 in a year or later, depending on the number of other changes. Go PHP 7!
RFC: Closure :: call - Offer to add a new call method. It allows you to perform a closure, passing the first parameter to the object that will be used as $this in the body of the closure. Analogue of the call method in JavaScript.
RFC: Switch default multiple - The first results of the publication of the PHP language specification — a sentence in which it is proposed to correct the incorrect behavior of the interpreter and to prohibit the use of several default blocks in the switch construction.
RFC: Abstract syntax tree - Voting on the implementation of an abstract syntax tree ends tomorrow and risks becoming the first completely unanimous decision - not a single vote against.
Phred - A PHP extension that adds string handling to the OO language, full Unicode support, components for internationalization / localization, and many other useful features.
patch-installer - The library allows you to patch other packages after installing or upgrading using Composer.
patchwork - The library allows you to override user functions in runtime. Also, for example, it allows replacing static and private methods with test stubs.
Testing the code that outputs something - The task of testing the code by displaying headers or content. To do this, the author proposes to use the tricks with the namespaces.
Preventing dogpile-effect — The post deals with caching and a problem when the validity of the cache has expired and a lot of requests are sent to the application at once, for each of which the application tries to generate new data. A typical solution is proposed in the form of using a semaphore.
Fractal - practical application - Considered the use of the Fractal library to solve the problem of a painless change of the database schema in a RESTful application.
Study of programming languages in Reddit - Interesting statistics on the mutual mentioning of various languages in the corresponding threads on Reddit.com. Also offered statistics on the use of various words in the text messages. PHP won by the number of words crap, fuck, hate, shit.
the @phpbard - In addition to the @phpbard twitter account with PHP quatrains, a blog has been created with entire sonnets and songs.