As I've described to hoffie, when multiple sapis are enabled in the php ebuild, the last one that gets build (usually the apache2sapi modul) installs the php-config script. This in turns causes php-config --sapis to just report apache2, and that's what causes pecl packages from skipping over tests [1] [1] http://blog.flameeyes.eu/2009/07/18/tinderbox-help-needed-for-php One trick would be to just sed php-config in src_install to list the sapis properly: php_sapis="apache2handler cli cgi"
I need to dig the php build process for php-5.3 anyway, so i'll have a look. sed seems to be a hackish way to do this, but if that's what's needed, i'll do it.
I've just pushed a change to src_install, seding php-config as mentioned, to the php overlay. The change will migrate to the main tree shortly. Thanks to ferringb for helping me out with the bash voodoo.
This is fixed in php-5.3.2