package Cpanel::Easy::PHP5::FileInfo;

# cpanel - Cpanel/Easy/PHP5/FileInfo.pm           Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

our $easyconfig = {
    'name'          => 'FileInfo',
    'url'           => 'http://www.php.net/manual/en/ref.fileinfo.php',
    'note'          => 'Up to 1GB of system memory may be required to compile this extension',
    'skip'          => 1,
    'when_i_am_off' => sub {
        my ($easy) = shift;
        $easy->add_to_configure( { '--disable-fileinfo' => '' }, 'Cpanel::Easy::PHP5' );
    },
    'step' => {
        '0' => {
            'name'    => 'to config options',
            'command' => sub {
                my ($self) = @_;
                $self->delete_from_configure( { '--disable-fileinfo' => undef } );
                return ( 1, 'Ok' );
            },

        },
    },
};

1;
