PHP Classes

PHP 5 End of Life for Active Support - 7 Minutes Lately in PHP podcast episode 79

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog PHP 5 End of Life for...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 227

Last month viewers: 1

Categories: Lately in PHP Podcast, News

December was the month for which the last version of PHP 5.6 series had support for regular bug fixes. From now on only security bugs will be fixed.

This was one of the main topics discussed by Manuel Lemos and Arturs Sosins on the episode 79 of the Lately in PHP podcast.

In this episode they also talk about an article that shows the whole evolution in terms of performance since PHP 5.0 through PHP 7.1 and PHP 8 or 7.2 version, as well the usual proposals for the next PHP version like magic casting, decorator classes, throwable error code types, C# property like accessors, etc..

This article also contains a podcast summary as a text transcript and a 7 minute video.

Listen to the podcast, or watch the hangout video, or read the transcript text to learn more about these interesting PHP topics.




Loaded Article

Contents

Introduction (0:17)

Transcript Summary (1:51)

PHP 5.6.29, 7.0.14, 7.1.0 released (8:42)

PHP 5.6 End of Active Support ()

PHP Performance Comparison and Evolution 2016 and 2017 from PHP 5, PHP 7.0, PHP 7.1 and PHP 8/Next (17:06)

Proposal: Magic Casting (28:11)

Throwables error code's type generalization (31:20)

Revisiting C# like Property Accessors Syntax (34:53)

RFC: Hash Content as Object (37:49)

Proposal: Decorator classes (41:19)

JavaScript Innovation Award Winners of September 2016 (45:14)

JavaScript Innovation Award Rankings of 2016 (1:04:10)

PHP Innovation Award Winners of September 2016 (1:06:52)

PHP Innovation Award Rankings of 2016 (1:15:23)

Conclusion (1:18:54)


Contents

Listen or download the podcast, RSS feed and subscribe in iTunes

Watch the podcast video, subscribe to the podcast YouTube channel

Transcript of the summary


Click on the Play button to listen now.


Download Size: 71MB Listeners: 1282

Introduction music Harbour used with explicit permission from the author Danilo Ercole, from Curitiba, Brazil

View Podcast in iTunes

In iTunes, use the Subscribe to Podcast... item of the Advanced menu, and then enter the URL above to subscribe to this podcast.

Watch the podcast video

Note that the timestamps below in the transcript may not match the same positions in the video because they were based on the audio timestamps and the audio was compacted to truncate silence periods.

See the Lately in PHP podcast play list on YouTube and Subscribe to this channel there.

7 Minute Summary Video

Complete Video

Subscribe PHP Classes channel on Livecoding.tv to watch next recording live.

Show notes

Transcript Summary

This month we are going to do, as usual, starting with the topics related with the latest versions of PHP. PHP 5.6 end of the life was reached but there was one last version in December. So it will enter in the security only fixes from now on.

I just want to add one on one more think about it I just noticed under standard. There is HTTP stream wrapper should ignore HTTP 100 continue code. I think we actually discussed about this in some previous podcast when somebody complained HTTP stream wrapper does not support HTTP 2 protocol. So I think this fix is related to it. They are listening and they're fixing, nice.

I thought they would to be doing that for future versions but OK. That is also fine.

Anyway there was yet another PHP 7.0 release and there was the first 7.1 release. It was not yet an update but there will probably be one soon, one each month. We already talked about PHP 7.1 release but there are other things that are important to know.

I already mentioned the end of life of PHP 5.6. There will be still 2 more years of security fixes support. So don't panic but I already heard people complaining that their hosting companies have forced them to upgrade to PHP 7.0. It seems somebody already panicked but well that's the way it goes.

Anyway moving on we have an article that we already mentioned last month but this time we are going to take a look at it closer, which is an article about how the PHP performance evolved over time at least since PHP 5 and we'll be talking about also what improvements happened in these versions to explain a why the performance improved.

Next we are going to start to talking about the usual set of proposals for the next PHP versions.

I will talk first about a concept that is being proposed, I don't know if it is going to approved but ok it is a bit confusing but they call it magic casting which would allow to cast objects from one type to the expected type in PHP 7 by calling a __cast function. It's a bit confusing how it works we will get back to this when we talk about this proposal.

Then we have just a RFC that somehow is basically a proposal to update the documentation about error codes of throwable errors and basicaly this to mention that some error codes could be usually numbers but could also be strings. So this is probably more as a documentation update than an actual feature.

Then we'll get back to an old proposal that did not pass in the past. It's like people vote on proposals and then they get back to them a later a few months when they fail to pass in the previous time. May be somebody agrees, maybe somebody changes their mind but this one is specifically about property accessor syntax which is actually somewhat inspired in .NET to define our variables of class can be set using functions defined inside a class.

Then there is a proposal, a RFC which which is also a bit hard to understand because you need to know how PHP works a bit  internally for instance when you establish a database connection it returns a resource value which is an integer but they want to make it an object, they call it Hash Context. It's either this or I'm not understanding this feature but will get back to this ahead.

Then finally we'll talk about a proposal for what is called decorated classes. These classes are to follow the decorator pattern which is usually implemented with a subclass that defines functions that maybe called before and after another function that is being decorated. So the proposal is to add a new keyword called decorates to make it more explicit that this is a decorator pattern.




You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog PHP 5 End of Life for...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)