The attached diff is against php-4.1.2-r8.ebuild and adds support to php for ssl, curl, snmp and bzip2 Support for ssl and snmp are optional and depend on USE variables As coded, support for curl depends on a currently non-existant USE variable. Your call if you create a use variable for curl or just compile curl in by default (my approach would be a new USE variable for curl support) Support for bzip2 is added by default since bzip2 is part of the base Gentoo system. Ive run the modified php (as per the patched ebuild) for a few days without any problems but havnt tested the underlying php functions that this adds.
Created attachment 832 [details, diff] php-4.1.2-r8.ebuild.diff
added php-4.1.2-r9.ebuild with these changes.