38 $info = &$this->getid3->info;
40 fseek($this->getid3->fp,
$info[
'avdataoffset'], SEEK_SET);
41 $EXEheader =
fread($this->getid3->fp, 28);
44 if (substr($EXEheader, 0, 2) != $magic) {
45 $info[
'error'][] =
'Expecting "'.Helper::PrintHexBytes($magic).
'" at offset '.
$info[
'avdataoffset'].
', found "'.
Helper::PrintHexBytes(substr($EXEheader, 0, 2)).
'"';
50 $info[
'fileformat'] =
'exe';
51 $info[
'exe'][
'mz'][
'magic'] =
'MZ';
66 $info[
'exe'][
'mz'][
'byte_size'] = ((
$info[
'exe'][
'mz'][
'raw'][
'page_count'] - 1)) * 512 +
$info[
'exe'][
'mz'][
'raw'][
'last_page_size'];
67 $info[
'exe'][
'mz'][
'header_size'] =
$info[
'exe'][
'mz'][
'raw'][
'header_paragraphs'] * 16;
68 $info[
'exe'][
'mz'][
'memory_minimum'] =
$info[
'exe'][
'mz'][
'raw'][
'min_memory_paragraphs'] * 16;
69 $info[
'exe'][
'mz'][
'memory_recommended'] =
$info[
'exe'][
'mz'][
'raw'][
'max_memory_paragraphs'] * 16;
71 $info[
'error'][] =
'EXE parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
GetId3() by James Heinrich info@getid3.org //.
fseek($bytes, $whence=SEEK_SET)
static LittleEndian2Int($byteword, $signed=false)
GetId3() by James Heinrich info@getid3.org //.