API15:JArchiveBzip2/ construct
From Joomla! Documentation
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