Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21009 invoked by uid 1010); 31 Dec 2006 00:05:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20993 invoked from network); 31 Dec 2006 00:05:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2006 00:05:27 -0000 Authentication-Results: pb1.pair.com header.from=kevin@oceania.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kevin@oceania.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oceania.net from 64.251.31.245 cause and error) X-PHP-List-Original-Sender: kevin@oceania.net X-Host-Fingerprint: 64.251.31.245 unknown Received: from [64.251.31.245] ([64.251.31.245:60923] helo=swamp.oceania.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/71-09809-7CEF6954 for ; Sat, 30 Dec 2006 19:05:27 -0500 Received: from kevin.oceania.net (44.6.194.203.dial.dynamic.acc03-kent-syd.comindico.com.au [203.194.6.44]) by swamp.oceania.net (8.13.4/8.13.4) with SMTP id kBV03rDm017601 for ; Sun, 31 Dec 2006 11:03:54 +1100 Date: Sun, 31 Dec 2006 10:43:51 +1100 To: internals@lists.php.net Message-ID: <20061231104351.6056dc73.kevin@oceania.net> In-Reply-To: <4596F6F8.6030605@zend.com> References: <20061231094951.48487025.kevin@oceania.net> <4596F6F8.6030605@zend.com> Organization: Oceania X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Include fileinfo in core From: kevin@oceania.net (Kevin Waterson) This one time, at band camp, Antony Dovgal wrote: > While mime_magic is deprecated, it does not mean it cannot be used. > So there certainly is a way to do it without PECL. Currently, but it will be moved sometime in the future. > Anyone capable of installing core extension, is capable of installing an extension from PECL, > in most cases it's as easy as `pecl install `. Not everybody has access to this, particularly in a mutliple hosting environment. > I can't see how moving filepro into core would help those who cannot enable it anyway. It would be nice to be able to verify/validate file types by mimetype with a simple core function that is available on all platforms. If the only way of doing this is in PECL then portablity is lost and so is any surity of what type of file an uploaded file may be, without resorting to hacks. Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."