22 fseek($fd, $ThisFileInfo[
'avdataoffset'], SEEK_SET);
23 $EXEheader = fread($fd, 28);
25 if (substr($EXEheader, 0, 2) !=
'MZ') {
26 $ThisFileInfo[
'error'][] =
'Expecting "MZ" at offset '.$ThisFileInfo[
'avdataoffset'].
', found "'.substr($EXEheader, 0, 2).
'" instead.';
30 $ThisFileInfo[
'fileformat'] =
'exe';
31 $ThisFileInfo[
'exe'][
'mz'][
'magic'] =
'MZ';
46 $ThisFileInfo[
'exe'][
'mz'][
'byte_size'] = (($ThisFileInfo[
'exe'][
'mz'][
'raw'][
'page_count'] - 1)) * 512 + $ThisFileInfo[
'exe'][
'mz'][
'raw'][
'last_page_size'];
47 $ThisFileInfo[
'exe'][
'mz'][
'header_size'] = $ThisFileInfo[
'exe'][
'mz'][
'raw'][
'header_paragraphs'] * 16;
48 $ThisFileInfo[
'exe'][
'mz'][
'memory_minimum'] = $ThisFileInfo[
'exe'][
'mz'][
'raw'][
'min_memory_paragraphs'] * 16;
49 $ThisFileInfo[
'exe'][
'mz'][
'memory_recommended'] = $ThisFileInfo[
'exe'][
'mz'][
'raw'][
'max_memory_paragraphs'] * 16;
51 $ThisFileInfo[
'error'][] =
'EXE parsing not enabled in this version of getID3()';