Refer to www.php.net/mcrypt. I'll attach a patch.
Created attachment 3754 [details, diff] The patch.
committed
<ska-work> Wanna correct one of my mistakes? :/ <seemant> depends on which one <ska-work> bug 7665 , I read the webpage wrongly, it's not php that has to be compiled with --disable-posix-threads, but libmcrypt <GenBot> ska-work: Bug http://bugs.gentoo.org/show_bug.cgi?id=7665 nor, P2, PC, bug-wranglers@gentoo.org, RESO, FIXE, when compiling mod_php with mcrypt, --disable-posix-threads <ska-work> balme it all to me <ska-work> blame
fixed the php ebuild... appears the mcrypt ebuild has been modified already.