These ebuilds have lots of /usr/lib stuff hardcoded, instead of using $(get_libdir) from multilib eclass. Thanks. (Note for myself - fix the location in php5_2-sapi.eclass once this bug is fixed).
*** Bug 212467 has been marked as a duplicate of this bug. ***
Fixed in CVS.