File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public function setHeaders(array $headers) {
221221 */
222222 public function getBody () {
223223 if (!$ this ->stream ) {
224- $ this ->stream = new Stream ("/tmp/greg " );
224+ $ this ->stream = new Stream ("php://memory " );
225225 }
226226 return $ this ->stream ;
227227 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Stream implements StreamInterface {
1313 protected $ isWritable ;
1414 protected $ uri ;
1515
16- public function __construct (string $ path , string $ mode = "r " ) {
16+ public function __construct (string $ path , string $ mode = "r+ " ) {
1717 $ this ->stream = fopen ($ path , $ mode );
1818 $ streamInfo = stream_get_meta_data ($ this ->stream );
1919 $ this ->isSeekable = $ streamInfo ["seekable " ];
You can’t perform that action at this time.
0 commit comments