Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Zend_Gdata_App_MediaFileSource uses fread() in a wrong way #12

Open
smalyshev opened this issue May 23, 2013 · 0 comments
Open

Zend_Gdata_App_MediaFileSource uses fread() in a wrong way #12

smalyshev opened this issue May 23, 2013 · 0 comments

Comments

@smalyshev
Copy link

n Zend_Gdata_App_MediaFileSource::encode there's the following code:

$fileHandle = fopen($this->getFilename(), 'r', true);
$result = fread($fileHandle, filesize($this->getFilename()));

The problem is that if filename is a stream filename, fread() would not read the whole file. Instead, stream_get_contents() should be used to read the whole file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant