Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18189 invoked from network); 23 Nov 2013 04:22:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2013 04:22:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=pencap@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pencap@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: pencap@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:53432] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/E2-00832-38D20925 for ; Fri, 22 Nov 2013 23:22:29 -0500 Received: by mail-ie0-f175.google.com with SMTP id x13so3484796ief.6 for ; Fri, 22 Nov 2013 20:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ceaR/byysNRY3XuYxNz8oFRisFDvIBGl1grRpr9ebQU=; b=AFyr7f9jTavvYnkYYMQI/mfoR4ZTOhjlJ5fmKTTrTRLBZ2SDZekfPLrWfWIWRu29rp 77erBGkmgIK+VHOpPYvoWOfv/jrO3/NGLqZsvQZzCH0lcIK6k18qOg3AdaXJKfGu6W49 e3g7bjb63CFuhW8ggTvTzDuKJQekaeJ+RHs9lah/xINe3ZXH1sg06dbBnNOg1PmVDrLX p1vuHjei7BxF+O1k4C9YxSSu1+g05EtvETwiLlcR6/ias2cu2byiKvJzeiPY8RzxC5MW Rt5OEzw/J2FP4smGthBuEipwvg45FkTwO9As5ZYvKB8m9B5U9u2obeY28s2Q6bLWB+Pc H5qQ== MIME-Version: 1.0 X-Received: by 10.50.26.98 with SMTP id k2mr5093907igg.19.1385180545141; Fri, 22 Nov 2013 20:22:25 -0800 (PST) Received: by 10.51.16.5 with HTTP; Fri, 22 Nov 2013 20:22:25 -0800 (PST) Received: by 10.51.16.5 with HTTP; Fri, 22 Nov 2013 20:22:25 -0800 (PST) In-Reply-To: <5272ECF8.2000602@oracle.com> References: <526ACC9B.4090204@oracle.com> <5272C51F.7090106@oracle.com> <5272E3E4.5030907@sugarcrm.com> <5272ECF8.2000602@oracle.com> Date: Fri, 22 Nov 2013 22:22:25 -0600 Message-ID: To: Christopher Jones Cc: PHP Internals , Stas Malyshev Content-Type: multipart/alternative; boundary=047d7bd7570a57d3bb04ebd07aa8 Subject: Re: [PHP-DEV] Adding new MIME types for the CLI web server From: pencap@gmail.com (Mike Willbanks) --047d7bd7570a57d3bb04ebd07aa8 Content-Type: text/plain; charset=UTF-8 Chris, What is wrong with a more common magic file which fileinfo utilizes? I understand the concept of adding common extensions but only as a fallback to distro behavior. Regards, Mike On Oct 31, 2013 6:52 PM, "Christopher Jones" wrote: > > > On 10/31/13 4:12 PM, Stas Malyshev wrote: > >> Hi! >> >> Final comments anyone, before I commit next week? >>> >> >> It looks strange that we have to hardcode so many mimetypes in the code, >> and doesn't sound a scalable solution. Can't we make it use data from >> fileinfo or some other customizeable table so we don't have to keep all >> MIME types hardcoded in the code? Maybe some ability to use Apache's >> mime.types file? >> >> > It isn't scalable, but users can always use a router script to add > additional types so there isn't a real world problem in missing > uncommon extensions. > > My idea was to add common extensions to the existing look-up list. A > quick and straight-forward solution to making the CLI web-server > handle the 80-20 rule. > > If someone (ajf?) wants to work on a more comprehensive solution > instead, I have no objection. > > Chris > > -- > christopher.jones@oracle.com http://twitter.com/ghrd > Free PHP & Oracle book: > http://www.oracle.com/technetwork/topics/php/ > underground-php-oracle-manual-098250.html > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7bd7570a57d3bb04ebd07aa8--