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's Blog:
Understanding PHP's internal function definitions (Part 2)
March 19, 2012 @ 08:17:48

Following this recent post from Anthony Ferraara about the source code of the PHP language itself, Nikita Popov is working with him and has produced the second part of the series, a look at finding the internal function definitions for the PHP functions you use every day.

In the previous part ircmaxell explained where you can find the PHP source code and how it is basically structured and also gave a small introduction to C (as that's the language PHP is written in). If you missed that post, you probably should read it before starting with this one. What we'll cover in this article is locating the definitions of internal functions in the PHP codebase, as well as understanding them.

He starts with a basic example - a string function, strpos. He shows a handy searching trick to help find the actual function definition and which matches should be given priority. He lays out a typical skeleton of a PHP function definition and gets into some detail as to what this particular function does (in C). He briefly mentions the Zend Engine functions and a look ahead to finding classes and methods.

0 comments voice your opinion now!
source code developers language internal function definition tuttorial


blog comments powered by Disqus

Similar Posts

PHP-GTK Community: Code completion for PHP-GTK in Netbeans

PHPMaster.com: Introduction to PHP Arrays

Brian DeShong's Blog: Small news that's big to me: my PHP Testfest submissions made it into 5_3!

Hyperpolyglot.org: Syntax for Common Tasks - Side-by-side (Ruby, Perl, Python & PHP)

PHP.net: PHP 5.5.0 released


Community Events





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


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

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