Skip to content
Commit d6ce45fe authored by Vincent Petry's avatar Vincent Petry
Browse files

Correctly read the full stream in file_get_contents

When using user-defined stream wrappers, PHP will
return a maximum of 8192 bytes even if more was
requested.

This fix uses stream_get_contents to make sure the full stream is read
and not only the first 8 KB.

Added unit test with a bigger test file to cover this case.
parent ab696edb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment