Commit 74ff0d86 authored by TheBigB's avatar TheBigB
Browse files

Another attempt

parent 6849b431
Pipeline #4004680 failed with stage
in 1 minute and 6 seconds
......@@ -115,7 +115,7 @@ class Curly implements HttpClientInterface
if ($options->outputHeaderStream === null)
{
$stream = fopen('php://temp', 'rw+');
$stream = fopen('php://temp', 'rwb');
$options->outputHeaderStream = $stream;
return new Stream($stream);
}
......@@ -141,7 +141,7 @@ class Curly implements HttpClientInterface
if ($options->outputStream === null)
{
$stream = fopen('php://temp', 'rw+');
$stream = fopen('php://temp', 'rwb');
$options->outputStream = $stream;
return new Stream($stream);
}
......
......@@ -33,7 +33,7 @@ class ExtendedServerRequest extends ServerRequest
*/
public function withStringBody($content)
{
$stream = new SharedStream('php://temp', 'rw+');
$stream = new SharedStream('php://temp', 'rwb');
BinarySafe::write($stream, $content);
$stream->rewind();
......
......@@ -93,7 +93,7 @@ class HandlerTest extends AbstractTestCase
*/
private function createRandomByteStream()
{
$stream = new SharedStream('php://temp', 'rw+');
$stream = new SharedStream('php://temp', 'rwb');
for ($i = 0; $i < self::BYTES_TO_READ; $i++)
{
......
......@@ -40,7 +40,7 @@ class OutputStreamTest extends AbstractTestCase
{
$curly = new Curly();
$stream = new SharedStream('php://temp', 'rw+');
$stream = new SharedStream('php://temp', 'rwb');
$curly->setCustomHandler(new StreamHandler(null, $stream));
$request = $this->buildRequest('GET', 'bytes', self::BYTES_TO_READ);
......@@ -57,7 +57,7 @@ class OutputStreamTest extends AbstractTestCase
{
$curly = new Curly();
$stream = new SharedStream('php://temp', 'rw+');
$stream = new SharedStream('php://temp', 'rwb');
$curly->getOptions()->outputStream = $stream->getResource();
$request = $this->buildRequest('GET', 'bytes', self::BYTES_TO_READ);
......
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