Preface

This book is for anyone that wants to try write a PHP extension using C++, to create functions or classes that manipulate PHP standard type structures, and work with the standard PHP source distribution. The ZPP C++ suite of classes presented here, allow manipulations of zend_string, zend_object, HashTable by themselves as indenpent entities outside of the zval structure.

An integrated base class and templated class manager class is provided.

The individual PHP data type wrapper classes and their helpers are introduced.

A set of scripted web site and database management classes are introduced, in PHP script form, which are substitutable for the Wcc extension that can be optionally used that implements many of the crucial classes in C++.

A chapter on building a single class extension, goes into design, build, and test and fix processes as is being done right in almost real time for the Wcc project as part the process of writing this book. Maybe this part is going to take at least a week. It will be date stamped.

At the moment the ZPP classes are not exported in a library. It will take up chunk of any compiled binary, but maybe not nearly so much as using PHP-CPP. They are intended to be used as a wrappers, for all the inline PHP code that extension authors might otherwise have to write.