PHPのコードをcppで記述する方法

[参考]
http://phpspot.org/blog/archives/2006/05/phpc.html

[環境]
Fedora Core release 6 (Zod)
php-5.1.6-3.4.fc6

[事前準備]
http://sourceforge.net/projects/binaryphp/
ソースのダウンロード

$ tar xfvz BinaryPHP-POC.tar.gz
$ cd BinaryPHP-POC
$ vi BinaryPHP-POC/tokenflow.php
19行目が二重に定義されている為コメントアウト
// var $defines = array();
$ less examples/helloworld.php

$ php convert.php --if examples/helloworld.php --of examples/helloworld

$ less examples/irc.php
$ php convert.php --if examples/irc.php --of examples/irc