PHP Classes

Improving PHP Extensions Mixing PHP and C code using PCS - 4 Minutes Lately in PHP podcast episode 85

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Improving PHP Extensi...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  


Viewers: 516

Last month viewers: 1

Categories: Lately in PHP Podcast

PCS is a mechanism that allows creating PHP extensions mixing C and PHP code, thus allowing to develop PHP extensions faster.

The possibility to use of PCS in PHP 7.2 was one of the main topics discussed by Manuel Lemos and Arturs Sosins on the episode 85 of the Lately in PHP podcast.

In this episode they also talked about the proposals to support retrying code that throws exceptions, matching regular expressions starting in a position of the text, having final variables, binary serialization of variables, etc..

This article also contains a podcast summary as a 4 minute video and a transcript of the summary.

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

Loaded Article


Introduction (0:17)

Podcast Summary (0:49)

Christian Vigh Winner of PHP Innovation Award 2016 Died (5:17)

PHP 7.0.20, 7.1.6, 7.2.0 beta 1 and 2 released (7:41)

RFC: Retry functionality (10:19)

RFC: Doxygen for documenting PHP internals (14:12)

Proposal: preg_match() option for anchored offset (16:41)

Proposal: PHP_OS_FAMILY and macOS (20:31)

RFC: Unary null coalescing operator (22:03)

Proposal: Mixing PHP and C code in extensions with PCS (24:04)

Proposal: Final variables (27:46)

Proposal: Binary serialize and unserialize with msg_pack (31:22)

18 Years of PHP Classes Helping Developers to Have Recognition and Be Independent (33:40)

The Best PHP Books 2017 and 2016 (47:42)

How Can PHP Import Excel to MySQL using an PHP XLSX Reader and Excel XLSX Converter (53:03)

PHP Matrix Math Library (56:13)

JavaScript Innovation Award Winners of March 2017 (1:02:15)

JavaScript Innovation Award Rankings of 2017 (1:05:57)

PHP Innovation Award Winners of March 2017 (1:07:25)

PHP Innovation Award Rankings of 2017 (1:13:03)

Conclusion (1:15:43)


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

Watch the podcast video, subscribe to the podcast YouTube channel

Today we are going to talk about several interesting topics but first we will start on a said note about Christian Vigh the PHP innovation award winner of the year 2016 that according to his brother he has died and we are very sad because he was a great contributor. We will talk more about this right after the beginning.

Next we'll start talking about the usual developments of the latest PHP versions not just PHP 7.0 and 7.1 but also PHP 7.2 alpha that started to have its new releases.

Then we start talking about the usual proposals and RFCs starting one to have the retry functionality for exceptions on which you will be allowed to specify that one exception can happen multiple times and if it happens once it can be retried up to a limit, meaning that the code that is inside that section will be run again.

Next we'll talk about a proposal to use Doxygen to document the C sources of PHP I mean the PHP engine.

Next we'll have a proposal to be able to specify an offset on a string that needs to be matched with regular expressions with preg_match and other functions of the preg extension.

Next we talk about a new value for the PHP_OS_family when you are using the Mac OS and similar OS engines, I mean versions from Apple.

Next we will talk about a proposal for supporting the unary coalescing operator for instance checking if certain request variable is set if it is not set the value is evaluated as null, just to avoid warnings of undefined variables.

Next we will have a proposal for inclusion PCS in PHP 7.2 which would be the ability to make PHP code and C code to develop PHP extensions. This is interesting, we'll talk more on that.

Next we'll talk about the possibility to have final variables like you have in Java, not just for scalar types of variables which you can do already using constants but also for objects like objects that do not change despite the information inside the objects may change.

Next there will be a revival of the proposal to use msg_pack as a binary format for serializing and unserializing data currently using serialize and unserialize functions but this would be to generate a more efficient format which would be msg_pack.

Next we'll talk about some articles that were published on PHP Classes blog starting one about the 18 years a PHP classes just reviewing what happened in the last year in terms of new developments and also about upcoming plans that would happen around PHP Classes.

Next we'll talk about several articles, one that is about the best PHP books of 2017 2016. This is just a ranking of books that is generated dynamically, so this article will be updated regularly. It's not static article. Next year is about the best PHP books of 2018 and 2017.

And then we'll talk about a couple articles that are tutorials. One for importing Excel spreadsheets into MySQL with a class that exists on the site. Another is to manipulate matrices in PHP.

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

Click on the Play button to listen now.

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.

3 Minutes Summary Video

Complete Video

Subscribe PHP Classes channel on to watch next recording live.

Show notes

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

1,615,449 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:


No comments were submitted yet.

  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Improving PHP Extensi...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)