I know it's possible to extend PHP with C, but is it possible to write PHP modules with C++?
Actually, there are very little compilers that DO NOT support what makes C++ being C++. I haven't read the source code intensively, but, if you can find <B>class</B> or <B>template</B> inside the code, the answer shows itself.
fLIPIS
Search www.google.com for "php module writing" and you'll get many examples like this:
http://www.linuxnetworks.de/general/develdoc/module.html