Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63771 invoked from network); 31 Oct 2013 21:32:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2013 21:32:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:33024] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/21-53648-D5CC2725 for ; Thu, 31 Oct 2013 16:32:15 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3839CE203A; Thu, 31 Oct 2013 21:32:11 +0000 (GMT) Date: Thu, 31 Oct 2013 21:32:11 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Christopher Jones cc: PHP internals In-Reply-To: <5272C51F.7090106@oracle.com> Message-ID: References: <526ACC9B.4090204@oracle.com> <5272C51F.7090106@oracle.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Adding new MIME types for the CLI web server From: derick@php.net (Derick Rethans) On Thu, 31 Oct 2013, Christopher Jones wrote: > The PHP CLI web server 5.5 currrently supports these MIME types > natively: > > { "html", "text/html" }, > { "htm", "text/html" }, > { "js", "text/javascript" }, > { "css", "text/css" }, > { "gif", "image/gif" }, > { "jpg", "image/jpeg" }, > { "jpeg", "image/jpeg" }, > { "jpe", "image/jpeg" }, > { "png", "image/png" }, > { "svg", "image/svg+xml" }, > { "txt", "text/plain" }, > { "webm", "video/webm" }, > { "ogv", "video/ogg" }, > { "ogg", "audio/ogg" }, > > > Final comments anyone, before I commit next week? Isn't there a reason why you can't use the fileinfo extension/code for this instead? Hardcoding it seems rather strange? cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine