Any Gentoo system fail if: * sys-apps/file>5.11 * you use mod_php * and run the following code: <?php $realpath = realpath("extensions/Vector/modules/images/portal-break.png"); echo finfo_file( finfo_open( FILEINFO_MIME_TYPE ), $realpath ); ?> Note: this example for MediaWiki 1.19.11 root folder PHP versions affected: 5.3, 5.4, 5.5 (any) I'm asking to return file 5.11 and hardcode it in PHP ebuilds until linked issue will be fixed. Reproducible: Always All necessary information here:https://bugs.php.net/bug.php?id=64836&edit=2
I'm fairly certain that the bug report you referred to and responded to has nothing to do with the bug you're reporting.
The bug that I've mention is the root of problem. And the problem is in PHP. Yes, it doesn't related to Gentoo project but I've taken description and solution for this problem from the related issue.
(In reply to Andrey Niahajchyk from comment #2) > The bug that I've mention is the root of problem. And the problem is in PHP. > Yes, it doesn't related to Gentoo project but I've taken description and > solution for this problem from the related issue. I've just tested on ~amd64 with sys-apps/file-5.18, php 5.3.28-r1 and php-5.5.8 and the output of your php code is: image/png
file-5.18 package is masked. I'll try to unmask at the evening and test.
It is still reproducible for file-5.18. Note: it is not reproducible through php-cli. You have to use mod_php.
*** This bug has been marked as a duplicate of bug 467756 ***