Re: [PHP-DEV] Include fileinfo in core

2006-12-30 Thread Antony Dovgal
On 12/31/2006 04:04 AM, Vlad Bosinceanu wrote: Maybe it would be a good idea to have a list of recommended extensions for hosting providers that states what functionality an extension provides, what it depends upon and some brief analysis of runtime overhead and possibilities of abuse. While th

Re: [PHP-DEV] Include fileinfo in core

2006-12-30 Thread Vlad Bosinceanu
Maybe it would be a good idea to have a list of recommended extensions for hosting providers that states what functionality an extension provides, what it depends upon and some brief analysis of runtime overhead and possibilities of abuse. While this would obviously not fully solve the problem

Re: [PHP-DEV] Include fileinfo in core

2006-12-30 Thread Antony Dovgal
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 e

Re: [PHP-DEV] Include fileinfo in core

2006-12-30 Thread Kevin Waterson
This one time, at band camp, Antony Dovgal <[EMAIL PROTECTED]> 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,

Re: [PHP-DEV] Include fileinfo in core

2006-12-30 Thread Antony Dovgal
On 12/31/2006 01:49 AM, Kevin Waterson wrote: As we discussed on irc, mime_magic is now deprecated, there is currently no function available to detirmine mimetype without pecl/pear. While mime_magic is deprecated, it does not mean it cannot be used. So there certainly is a way to do it without

[PHP-DEV] Include fileinfo in core

2006-12-30 Thread 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

[PHP-DEV] Re: invalid array key/index not generating notices

2006-12-30 Thread Sara Golemon
> I came across a subtle bug a developer introduced into our > application. It took us a month to realize the bug was > there because PHP didn't throw a notice. > http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute.c?revision=1.755&view=markup Down inside zend_fetch_dimension_address(), you'l