George Schlossnagle sent me the following link to a a tutorial by Jay Smith:
http://142.166.76.45/software/php5cpp/php5cpp/ This provides full code for a C++ based extension. On a Suse 9.3 distribution of Php5 this results in an (unresolved) error, but with an Apache2/Php5 build from source, the example is fine. Thanks to all, for responses. Cheers, Andrew.