reassign 670945 mime-support
retitle 670945 add non-magic mime-types for php
tags 670945 +patch
affects 670945 php5
unmerge 664691
forcemerge 664691 670945
thank you

I have confirmed that adding text/x-php (and text/x-php-source) to
mime-support package fixes the issue. Attached is a patch.

Charles, do you want to do the upload, or you are fine with NMU? (If
you have adopted the package, you might want to do an upload to
unstable anyway, so all bug reports for wheezy ends in your mailbox
and not Brian's.)

O.

On Thu, Aug 23, 2012 at 9:54 AM, Ondřej Surý <ond...@debian.org> wrote:
> Hi Stefan,
>
> On Wed, Aug 15, 2012 at 8:31 PM, Stefan Fritsch <s...@sfritsch.de> wrote:
>> FWIW, this bug has been open for 4 months. It would have been nice if
>> you (or the php maintainers) could have sent a note to debian-
>> apache@l.d.o a bit earlier.
>
> Somehow I have missed this bug report completely :(. Unfortunatelly
> I am still only active PHP maintainer in Debian, so please excuse
> the occasional hiccups.
>
>> If mod_negotiation requires some mime-type for .php to work, then the
>> obvious solution would be to add a non-magic type, for example
>> "application/x-php".
>>
>> IMHO, in order to have the whole php config in one place, this should
>> be done with AddType in /etc/apache2/mods-available/php5.conf. Maybe
>> like this:
>>
>> # mod_negotiation's MultiViews needs php scripts to have a mime
>> # type to make negotiation work. These types are added for this
>> # purpose, but differently from the magic application/x-httpd-* types,
>> # they do not cause php scripts to be executed. That is done by the
>> # SetHandler directives above.
>> AddType application/x-php         php phtml php3
>> AddType application/x-php-source  phps
>
> Wouldn't the obvious solution be to implement this back in
> mime-support package, where it belongs (e.g. same as python or perl)?
>
> I am going to try to reproduce this and find a solution which would
> work for anyone.
>
> O.
> --
> Ondřej Surý <ond...@sury.org>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-ma...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



-- 
Ondřej Surý <ond...@sury.org>

Attachment: mime-support_5.32-1.1.patch
Description: Binary data

Reply via email to