Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13949 invoked by uid 1010); 30 Dec 2006 23:11:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13934 invoked from network); 30 Dec 2006 23:11:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2006 23:11:28 -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:34226] helo=swamp.oceania.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/90-09809-F12F6954 for ; Sat, 30 Dec 2006 18:11: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 kBUN9rKM013827 for ; Sun, 31 Dec 2006 10:09:54 +1100 Date: Sun, 31 Dec 2006 09:49:51 +1100 To: internals@lists.php.net Message-ID: <20061231094951.48487025.kevin@oceania.net> 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: Include fileinfo in core From: kevin@oceania.net (Kevin Waterson) As we discussed on irc, mime_magic is now deprecated, there is currently no function available to detirmine mimetype without pecl/pear. You could use exec('file -bi'..) or some other fallback or ugly hack that only increases code complexity and does not lend portability as they tend to be system/os specific. I think its reasonable for develpers to have access to this functionality without the need to install pecl/pear additions which in a hosting environment may not be possible. Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."