I have written an extension. Unfortunatelly I had to use some C++.
After building I have some problems with 3 functions:
zval_add_ref, REGISTER_LONG_CONSTANT, php_error_docref.
If I include their body within my extension, it's Ok.
Otherwise I got memory fault under PHP 4.3.0 and
relocation error: /usr/lib/php/xerces.so: undefined symbol: _Z12zval_add_refPP12_zval_struct
under 4.3.1. It has been built by gcc 3.2.2.
Could anyone spend few minutes on it:
It requires xerces-c-2.2.0.
Problematic places are marked by MEM_FAULT_HACK macro.