News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nikita Popov:
How to add new (syntactic) features to PHP
July 30, 2012 @ 09:54:34

Nikita Popov has a new post to his site looking at how you can add your own syntactic features directly to PHP (requires knowledge of the C language).

Several people have recently asked me where you should start if you want to add some new (syntactic) feature to PHP. As I'm not aware of any existing tutorials on that matter, I'll try to illustrate the whole process in the following. At the same time this is a general introduction to the workings of the Zend Engine. So upfront: I apologize for this overly long post.

He covers the usual "life" of a PHP script, how tokenization is handled and what happens when the script is parsed, compiled and executed. Code snippets are included to show you the points to add in your own syntax item - in their case, adding an "in" operator to see if a value is in an array (a one word version of this).

0 comments voice your opinion now!
syntax tutorial add new c language


blog comments powered by Disqus

Similar Posts

HowToForge.com: Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.1

DeveloperTutorials.com: Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

Alvaro Videla's Blog: Erlang as Session Storage for PHP

Derick Rethans: MongoDB's aggregation framework

NetTuts.com: Building a CodeIgniter Web Application From Scratch - Part 1


Community Events





Don't see your event here?
Let us know!


laravel series bugfix wordpress interview library code language api release application podcast unittest list configure install introduction developer threedevsandamaybe community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework