43 $info = &$this->getid3->info;
45 $info[
'fileformat'] =
'rar';
47 if ($this->option_use_rar_extension ===
true) {
48 if (function_exists(
'rar_open')) {
49 if ($rp = rar_open(
$info[
'filenamepath'])) {
50 $info[
'rar'][
'files'] = array();
51 $entries = rar_list($rp);
52 foreach ($entries as $entry) {
56 $entry->getUnpackedSize()));
62 $info[
'error'][] =
'failed to rar_open(' .
$info[
'filename'] .
')';
65 $info[
'error'][] =
'RAR support does not appear to be available in this PHP installation';
68 $info[
'error'][] =
'PHP-RAR processing has been disabled (set $getid3_rar->option_use_rar_extension=true to enable)';
An exception for terminatinating execution or to throw for unit testing.
GetId3() by James Heinrich info@getid3.org //.
GetId3() by James Heinrich info@getid3.org //.
static array_merge_clobber($array1, $array2)
static CreateDeepArray($ArrayPath, $Separator, $Value)
GetId3() by James Heinrich info@getid3.org //.
$option_use_rar_extension