Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509516 - dev-lang/php with >sys-apps/file-5.11 - ?
Summary: dev-lang/php with >sys-apps/file-5.11 - ?
Status: RESOLVED DUPLICATE of bug 467756
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=64836
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 09:10 UTC by Andrey Niahajchyk
Modified: 2015-02-04 20:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Niahajchyk 2014-05-04 09:10:36 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-04 13:42:25 UTC
I'm fairly certain that the bug report you referred to and responded to has nothing to do with the bug you're reporting.
Comment 2 Andrey Niahajchyk 2014-05-04 16:03:59 UTC
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.
Comment 3 Tomáš Mózes 2014-05-05 05:48:17 UTC
(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
Comment 4 Andrey Niahajchyk 2014-05-05 13:26:22 UTC
file-5.18 package is masked. I'll try to unmask at the evening and test.
Comment 5 Andrey Niahajchyk 2014-05-06 06:47:34 UTC
It is still reproducible for file-5.18.

Note: it is not reproducible through php-cli. You have to use mod_php.
Comment 6 Brian Evans (RETIRED) gentoo-dev 2015-02-04 20:50:12 UTC

*** This bug has been marked as a duplicate of bug 467756 ***