You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem on two files. Not facebook app. Some are processed normally and some cause this error.
public function read($length = 1)
{
// Protect against 0 byte reads when an EOF
if ($length < 0) {
throw new \RuntimeException('Length cannot be negative');
}
if ($length == 0) {
return '';
}
$bytes = fread($this->stream, $length);
if (false === $bytes || strlen($bytes) != $length) {
return 0; //MY DIRTY FIX
throw new \RuntimeException('Failed to read ' . $length . ' bytes');
}
return $bytes;
}
I examined the stream dump at this moment, and received information that the end of the file had been reached. However, there was an attempt to read two more bytes. After my crude fix, the file was read normally and all information was received. It may be worth studying this situation in more detail.
when trying to obtain the data of the facebook or messenger application gives this error
An uncaught Exception was encountered
Type: RuntimeException
Message: Failed to read 2 bytes
Filename: \vendor\tufanbarisyildirim\php-apk-parser\lib\ApkParser\SeekableStream.php
Line Number: 146
The text was updated successfully, but these errors were encountered: