When compiling php with support for IMAP, and the IMAP library has ssl-support, the php-4.1.2-r3 ebuild detects this and uses --with-imap-ssl instead of --with-imap. However, to compile php with imap ssl support you must include both switches, like this ; ./configure --with-imap --with-imap-ssl or else the compiled php module won't support imap at all
*** This bug has been marked as a duplicate of 1254 ***