From 4ba3b2a8f0d1a9bf06eae90ba214437ef86d78c5 Mon Sep 17 00:00:00 2001 From: Ahmad Fikrizaman Bin Abd Rahim Date: Thu, 27 Sep 2018 18:24:24 +0800 Subject: [PATCH] change stdout to temp --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index ddba984..fa5f032 100644 --- a/src/Client.php +++ b/src/Client.php @@ -237,7 +237,7 @@ public function download(array $options) 'headers' => [ 'Authorization' => $this->authToken, ], - 'sink' => isset($options['SaveAs']) ? $options['SaveAs'] : fopen('php://stdout', 'w'), + 'sink' => isset($options['SaveAs']) ? $options['SaveAs'] : fopen('php://temp', 'w'), ]; if (isset($options['FileId'])) {