[php-maint] Bug#639268: libapache2-mod-php5: .phar files not executed with php

Christian Weiske cweiske at cweiske.de
Thu Aug 25 13:10:45 UTC 2011


Package: libapache2-mod-php5
Version: 5.3.5-1ubuntu7.2
Severity: normal

..phar files are not executed with php when accessed through apache.

..phar is a file format to pack up whole PHP applications in a single file.

Reason for the problem is that
> /etc/apache2/mods-available/php5.conf
contains
>    <FilesMatch "\.ph(p3?|tml)$">
>        SetHandler application/x-httpd-php
>    </FilesMatch>
which does not match ".phar". The regex should be extended to
"\.ph(ar|p3?|tml)$"

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-11-generic (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libapache2-mod-php5 depends on:
ii  apache2-mpm-pref 2.2.17-1ubuntu1         Apache HTTP Server - traditional n
ii  apache2.2-common 2.2.17-1ubuntu1         Apache HTTP Server common files
ii  libbz2-1.0       1.0.5-6ubuntu1          high-quality block-sorting file co
ii  libc6            2.13-0ubuntu13          Embedded GNU C Library: Shared lib
ii  libdb4.8         4.8.30-5ubuntu2         Berkeley v4.8 Database Libraries [
ii  libmagic1        5.04-5ubuntu2           File type determination library us
ii  libpcre3         8.12-3ubuntu2           Perl 5 Compatible Regular Expressi
ii  libssl0.9.8      0.9.8o-5ubuntu1         SSL shared libraries
ii  libxml2          2.7.8.dfsg-2ubuntu0.1   GNOME XML library
ii  mime-support     3.51-1ubuntu1           MIME files 'mime.types' & 'mailcap
ii  php5-common      5.3.5-1ubuntu7.2        Common files for packages built fr
ii  tzdata           2011g-0ubuntu0.11.04    time zone and daylight-saving time
ii  ucf              3.0025+nmu1ubuntu1      Update Configuration File: preserv
ii  zlib1g           1:1.2.3.4.dfsg-3ubuntu3 compression library - runtime

Versions of packages libapache2-mod-php5 recommends:
ii  php5-cli                5.3.5-1ubuntu7.2 command-line interpreter for the p

Versions of packages libapache2-mod-php5 suggests:
ii  php-pear                5.3.5-1ubuntu7.2 PEAR - PHP Extension and Applicati

-- no debconf information





More information about the pkg-php-maint mailing list