|
|
@ -260,7 +260,6 @@ function iil_MultLine($fp, $line, $escape=false) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$line = $a[1][0] . '"' . ($escape ? iil_Escape($out) : $out) . '"';
|
|
|
|
$line = $a[1][0] . '"' . ($escape ? iil_Escape($out) : $out) . '"';
|
|
|
|
// console('[...] '. $out);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $line;
|
|
|
|
return $line;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -269,10 +268,12 @@ function iil_ReadBytes($fp, $bytes) {
|
|
|
|
$data = '';
|
|
|
|
$data = '';
|
|
|
|
$len = 0;
|
|
|
|
$len = 0;
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
$data .= fread($fp, $bytes-$len);
|
|
|
|
$d = fread($fp, $bytes-$len);
|
|
|
|
|
|
|
|
$data .= $d;
|
|
|
|
if ($len == strlen($data)) {
|
|
|
|
if ($len == strlen($data)) {
|
|
|
|
break; //nothing was read -> exit to avoid apache lockups
|
|
|
|
break; //nothing was read -> exit to avoid apache lockups
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// console('[...] '. $d);
|
|
|
|
$len = strlen($data);
|
|
|
|
$len = strlen($data);
|
|
|
|
} while ($len < $bytes);
|
|
|
|
} while ($len < $bytes);
|
|
|
|
|
|
|
|
|
|
|
|