News Feed
Jobs Feed
Sections




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

Ant Phillips' Blog:
Extending PHP in Project Zero
January 22, 2009 @ 10:25:18

Ant Phillips has a brief comparison of PHP and the Project Zero methods for using PHP/PECL extensions (largely written in C) in each environment.

The Zend Engine provides an extension API. This allows anyone to write classes, functions, constants and much more that plug in to the php.net runtime. Taking a peek at the php.net source code in CVS reveals just how many extensions there are.

[...] Zero has a very similar architecture that separates engine and extension. The main difference is that the core PHP language engine is written in Java. Zero also has a comprehensive API called XAPI-J that allows Java extensions to be written for the Zero PHP runtime.

The main difference between the two is the obvious recompile that the Project Zero extensions will have to go through (via JNI) to work correctly with their version of the core. This allows it to be able to use just about any PHP extension out there and saves a lot of work on recoding the great functionality already there.

0 comments voice your opinion now!
extension projectzero api pecl interface jni runtime source


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Mike Potter Announces "The (Unofficial) Adobe PHP SDK"

Derick Rethans' Blog: Starting Xdebug's debugger with Firefox

Joey Rivera's Blog: Using Zend_Paginator with Twitter API and Zend_Cache

Metapundit.net: Improvements to Structures_Datagrid

RubySource.com: PHP to Ruby: Modules, Mixins and Ducks


Community Events











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


facebook application composer language unittest code opinion hhvm package release security example framework hack overview component podcast symfony2 install introduction

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