Originally aired on
July 7th, 2017
We take a deep-dive into the underlaying structure of the the PHP source code and talk about the scanner, parser, the new AST layer (and the evil things we can do with it), and the Zend engine. Let's see how the PHP sausage is made!
Previous podcasts about PHP internals provide some context for this episode:
-j Nwhere N = [number of cores]+1
configurescript because it is generated from other files in the repository. Requiring users to generate it removes the possibility of
configurebeing out of sync.
whileloop with a
switchstatement in it:
switchstatement defines behaviour for each opcode
switch, each opline has a handler field containing a pointer to a callback function
Thank you, Julien Pauli for all your hard work on php-src. A $50 Amazon gift card from Zend Training is on its way to you.
Thank you Chris Shaw for authoring the show notes for this episode!
If you'd like to contribute show notes and totally get credit for it, check out the show-notes repo!