Commit 9dfb2c5f authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #305

parents c8b4dce5 b33eccbf
......@@ -197,7 +197,7 @@ class ReadableStream
fclose($this->buffer);
}
$this->buffer = fopen("php://temp", "w+");
$this->buffer = fopen("php://memory", "w+b");
$this->bufferEmpty = true;
$this->bufferFresh = true;
}
......
......@@ -76,7 +76,7 @@ class WritableStream
$this->chunkSize = $options['chunkSizeBytes'];
$this->collectionWrapper = $collectionWrapper;
$this->buffer = fopen('php://temp', 'w+');
$this->buffer = fopen('php://memory', 'w+b');
$this->ctx = hash_init('md5');
$this->file = [
......
Markdown is supported
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