Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22488 invoked by uid 1010); 2 Jan 2007 13:12:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22473 invoked from network); 2 Jan 2007 13:12:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2007 13:12:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:53142] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/93-32123-A2A5A954 for ; Tue, 02 Jan 2007 08:12:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 6388D2449DD; Tue, 2 Jan 2007 14:12:12 +0100 (CET) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yE-JWRWPO-WW; Tue, 2 Jan 2007 14:12:06 +0100 (CET) Received: from [192.168.1.106] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id A2F4624497B; Tue, 2 Jan 2007 14:12:06 +0100 (CET) Message-ID: <459A5A20.2090009@iamjochem.com> Date: Tue, 02 Jan 2007 14:12:00 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Kevin Waterson CC: internals@lists.php.net References: <20061231094951.48487025.kevin@oceania.net> <4596F6F8.6030605@zend.com> <20070102213341.2c99dd13.kevin@oceania.net> In-Reply-To: <20070102213341.2c99dd13.kevin@oceania.net> X-Enigmail-Version: 0.94.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Include fileinfo in core From: jochem@iamjochem.com (Jochem Maas) Kevin Waterson wrote: > This one time, at band camp, Antony Dovgal wrote: > >> Also, to repeat myself here, there is also no way to use filepro database, hwapi, msession, >> cpdf, dio, fam, ingres, mnogosearch, yp API, Ovrimos, PayFlow Pro and a bunch of other functions >> without using PECL. > > I appreciate your point about not having everything available to core. The extensions you > mention above are very specific to a task, where-as validating a file mimetype is quite a > generic procedure. To this end I would like to see more discussion on the topic. Its very > clear that you are not for it, but lets hear from others? my opinion count for jack s*** around here but the way I see it if I have a function fopen() as standard then I 'should' have a standard mechanism to figure out what kind of file something is. in practice I control all the servers I work on so doing 'pecl install fileinfo' is not a big deal - but the majority of users don't have that privilege. having fileinfo included as standard will hopefully encourage lots of projects (that are often infamous for security flaws?) to do a little more than check a file's extension when dealing with uploads? > > > Kind regards > Kevin >