Author: Manuel Lemos
Updated on: 2016-12-23
Posted on: 2016-11-23
Categories: Lately in PHP Podcast, News
Now there is a better debugger extension named DontBug that allows to go back and replay code execution steps. This was one of the main topics discussed by Manuel Lemos and Arturs Sosins on the episode 77 of the Lately in PHP podcast now also being streamed using livecoding.tv.
In this episode they also commented proposals to make PDO support driver specific parameters and debug emulated prepared statements, adding generic object type hinting, implementing big number math with OpenSSL, among other proposals of great interest for the next PHP releases.
This article also contains the transcript of the podcast summary.
Listen to the podcast, or watch the hangout video to learn more about these interesting PHP topics.
Transcript Summary (1:21)
PHP 5.6.27, 7.0.11, 7.1.0RC5 released (7:03)
PHP HTTP requests not supporting HTTP 1.1 correctly (9:46)
Dontbug: The PHP debugger that can run code backwards (16:19)
RFC: Warning when counting non-countable objects (22:53)
RFC: Driver Specific PDO parameters (24:36)
RFC: Debugging PDO Prepared Statement Emulation (25:47)
RFC: Add BigNum support to OpenSSL extension (27:53)
RFC: Convert numeric keys in object/array casts (31:37)
RFC: Object typehint (34:22)
PHP Innovation Award Winners of August 2016 (1:00:01)
PHP Innovation Award Rankings of 2016 (57:04)
Download Size: 52MB Listeners: 1154
Introduction music Harbour used with explicit permission from the author Danilo Ercole, from Curitiba, Brazil
In iTunes, use the Subscribe to Podcast... item of the Advanced menu, and then enter the URL above to subscribe to this podcast.
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.
Subscribe PHP Classes channel on Livecoding.tv to watch next recording live.
We are going to cover the usual PHP latest releases, mostly of the other month because this month probably PHP 7.1 wil l be released in a given that the latest RC of PHP 7.1.0 was already announced and they say was the last 7.1.0 RC 5 but there was the RC 6 already.
Then we move on to a topic that seems to be a bug that is happening for many years but it seems it didn't affect much PHP applications which is related to the way PHP HTTP stream wrapper sends requests to web servers, it should be compliant with at least HTTP 1.1 but it was not sending the right headers or has not the right behavior.
Then we have an interesting topic and probably we should even show a video or a away to show debugging sessions in PHP.
It seems this is based on XDebug, I am not sure if this is a fork of XDebug or something but it is able to playback sessions, I mean you can go backwards to see how it was a session before you single step certain commands, so you can actually see before and after.
I did not try this but this seems to be useful, so you can see what went wrong before and after you were stepping your code.
The next topic is about just an RFC to propose to prevent that you extract the count of objects that are not countable. This is probably to avoid some bugs that may happen when you are trying to count the wrong type of value.
The next topic is more about PDO. This one is about the driver specific parameters. You can send parameters to PDO but some drivers may have specific parameters that you may want to configure. So the proposal is to allow you to configure those parameters.
Then there is the possibility to debug prepared statements, I mean when PDO is emulating prepared statements you can actually see what is the query that was executed after replacing the values of the prepared statements.
Then there is a proposal to the BigNum support using OpenSSL extension. The idea is to provide a class that uses the OpenSSL library to perform operations with arbitrary precision numbers.
The next topic is about the way numeric keys are converted as indexes to access objects and arrays. And the last topic is a to propose to have object type hinting. So instead of having type hinting for a specific class, you just can have object, so you can actually accept an impact of object in a function.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.