Actions

API15

JArchiveBzip2/ construct

< API15:JArchiveBzip2

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Constructor tries to load the bz2 extension of not loaded


<! removed transcluded page call, red link never existed >

Syntax

__construct()


Returns

void

Defined in

libraries/joomla/filesystem/archive/bzip2.php

Importing

jimport( 'joomla.filesystem.archive.bzip2' );

Source Body

function __construct()
{
        // Is bz2 extension loaded?  If not try to load it
        if (!extension_loaded('bz2')) {
                if (JPATH_ISWIN) {
                        @ dl('php_bz2.dll');
                } else {
                        @ dl('bz2.so');
                }
        }
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement