Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27230 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30710 invoked by uid 1010); 2 Jan 2007 09:19:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30695 invoked from network); 2 Jan 2007 09:19:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2007 09:19:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 85.92.73.163 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 85.92.73.163 iko.gotobg.net Linux 2.6 Received: from [85.92.73.163] ([85.92.73.163:55448] helo=iko.gotobg.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/63-04701-0B32A954 for ; Tue, 02 Jan 2007 04:19:44 -0500 Received: from e180042233.adsl.alicedsl.de ([85.180.42.233] helo=[192.168.179.13]) by iko.gotobg.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1H1fnZ-000383-7Z; Tue, 02 Jan 2007 11:19:09 +0200 Message-ID: <459A2341.3040402@hristov.com> Date: Tue, 02 Jan 2007 10:17:53 +0100 User-Agent: Thunderbird 1.5.0.7 (X11/20060911) MIME-Version: 1.0 To: Antony Dovgal CC: Kevin Waterson , internals@lists.php.net References: <20061231094951.48487025.kevin@oceania.net> <4596F6F8.6030605@zend.com> <20061231104351.6056dc73.kevin@oceania.net> <45970292.2010404@zend.com> In-Reply-To: <45970292.2010404@zend.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Include fileinfo in core From: php@hristov.com (Andrey Hristov) Hi Antony, Antony Dovgal wrote: > On 12/31/2006 02:43 AM, Kevin Waterson 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. > > Sure, but the very same applies to core extensions. however the just do ./configure without any additional options or just add all enabling|--with params but are ignorant of PECL being existent. Thus they think they have provided everything, though they haven't. Then the process starts to ask for the installation of this or that PECL extension :( >> 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. > > Including an extension into the core does not mean it will become > available on all hostings, especially taking into account that this > extension has an external dependency (libfile). > > Also, I'm not sure I understand what portability you're talking about. > ext/mime_magic can be also missing if your sysadmin did not enable it > when building PHP. Andrey