Bug 1117140 - Handle .phar files with php
Summary: Handle .phar files with php
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-08 06:54 UTC by Christian Weiske
Modified: 2017-05-10 15:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-06 06:51:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 639268 0 None None None Never

Description Christian Weiske 2014-07-08 06:54:06 UTC
Description of problem:
.phar (PHP Archive files, similar to .jar) allows one to pack up whole PHP applications in a single file.

When dropping a .phar file into apache's document root, the .phar file does not get handled by php but treated as plain text.

The apache configuration should be changed to let mod_php handle .phar files in addition to .php files.

Steps to Reproduce:
1. Install apache with mod_php
2. Create a .phar file e.g. http://p.cweiske.de/120
3. Open the .phar in your browser

Actual results:
Phar file contents are displayed

Expected results:
phpinfo() output should be shown.

Comment 1 Fedora Admin XMLRPC Client 2014-07-16 12:03:17 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Jaroslav Reznik 2015-03-03 16:06:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 3 Fedora End Of Life 2016-07-19 11:54:37 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Remi Collet 2017-05-05 13:05:50 UTC
Having to think more about this

Comment 6 Remi Collet 2017-05-10 15:37:07 UTC
Notice: this fix is only planed for F27 with PHP 7.2 as probably other packages need to be fixed (to protect unwanted .phar execution)

Ex (wordpress)
http://pkgs.fedoraproject.org/cgit/rpms/wordpress.git/commit/?h=master&id=cb4d926f8c23df855f2b9307719c4d67942ed6fc


Note You need to log in before you can comment on or make changes to this bug.