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

Zend_Gdata_App_MediaFileSource uses fread() in a wrong way #12

Description

@smalyshev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions