Re: Include fileinfo in core

From: Date: Sat, 30 Dec 2006 23:43:51 +0000
Subject: Re: Include fileinfo in core
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-27221@lists.php.net to get a copy of this message
This one time, at band camp, Antony Dovgal <antony@zend.com> 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 <name>. 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."

« previous php.internals (#27221) next »