Who knows how to create a shared library in a form that PHP4 will understand and usable in the dl("TEST.SO") function call?
I have looked at ext_skel to create a skeleton, but there little in the way of moving from --enable-modname to modname.so.