public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: enable PHP execution of .phar files, see #1117140
Date: Fri, 27 Nov 2026 07:28:23 GMT	[thread overview]
Message-ID: <179576450361.1.12431001948104022094.rpms-php-b2791b6eece4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : b2791b6eece4e6af00c6fa29d516c1f676f89ad0
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2017-05-06T08:50:19+02:00
Stats  : +10/-5 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/b2791b6eece4e6af00c6fa29d516c1f676f89ad0?branch=private-php86

Log:
enable PHP execution of .phar files, see #1117140

---
diff --git a/nginx-php.conf b/nginx-php.conf
index 9b01536..1df1b04 100644
--- a/nginx-php.conf
+++ b/nginx-php.conf
@@ -4,11 +4,13 @@
 #
 index index.php index.html index.htm;
 
-location ~ \.php$ {
-    try_files $uri =404;
+location ~ \.(php|phar)(/.*)?$ {
+    fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
+
     fastcgi_intercept_errors on;
     fastcgi_index  index.php;
     include        fastcgi_params;
     fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
+    fastcgi_param  PATH_INFO $fastcgi_path_info;
     fastcgi_pass   php-fpm;
 }

diff --git a/php.conf b/php.conf
index 1a5d148..2eb6a28 100644
--- a/php.conf
+++ b/php.conf
@@ -21,7 +21,7 @@ DirectoryIndex index.php
     #
     # Cause the PHP interpreter to handle files with a .php extension.
     #
-    <FilesMatch \.php$>
+    <FilesMatch \.(php|phar)$>
         SetHandler application/x-httpd-php
     </FilesMatch>
 
@@ -50,7 +50,7 @@ DirectoryIndex index.php
     # Enable http authorization headers
     SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
 
-    <FilesMatch \.php$>
+    <FilesMatch \.(php|phar)$>
         SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
     </FilesMatch>
   </IfModule>

diff --git a/php.spec b/php.spec
index 01109c9..cff97b1 100644
--- a/php.spec
+++ b/php.spec
@@ -62,7 +62,7 @@
 %endif
 
 %global rcver  RC1
-%global rpmrel 2
+%global rpmrel 3
 
 Summary: PHP scripting language for creating dynamic web sites
 Name: php
@@ -1501,6 +1501,9 @@ rm -f README.{Zeus,QNX,CVS-RULES}
 
 
 %changelog
+* Sat May  6 2017 Remi Collet <remi@fedoraproject.org> - 7.1.5-0.3.RC1
+- enable PHP execution of .phar files, see #1117140
+
 * Thu Apr 27 2017 Remi Collet <remi@fedoraproject.org> - 7.1.5-0.2.RC1
 - new sources from new tag
 

                 reply	other threads:[~2026-11-27  7:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576450361.1.12431001948104022094.rpms-php-b2791b6eece4@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox