configure searchs for magic.mime in /usr/local/apache/conf/magic /usr/local/etc/apache/conf/magic /etc/apache/magic /etc/httpd/conf/magic /usr/share/magic.mime /usr/share/misc/magic.mime /etc/magic.mime but it's located in /usr/share/misc/file/magic.mime in gentoo. So the configure flag "--with-mime-magic" should be changed to "--with-mime-magic=/usr/share/misc/file/magic.mime".
Might also be because buildonf reorders things in the configure script (and then we'll just need to edit the configure script manually to get a smaller patch).
Ignore that, wrong bug....
fixed in cvs.
magic.mime comes from sys-apps/file and in earlier versions (at least version 3.39, which I had installed) it's located in /usr/share/misc. I got the compile error (actually a configure error) because php was now looking for it in /usr/share/misc/file. By upgrading to sys-apps/file-4.06, the problem is fixed. I think the RDEPEND entry in the php-sapi eclass should be changed to >=sys-apps/file-4.06 so that people with old versions of file won't get a compile error.
ryan: ok, i've done that (>=sys-apps/file-4.02)