Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit b4ead38

Browse files
committed
Hoa\Stringbuffer uses php://temp. #performance
1 parent ea72fa9 commit b4ead38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stringbuffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function __construct ( $streamName = null ) {
117117
*/
118118
protected function &_open ( $streamName, \Hoa\Stream\Context $context = null ) {
119119

120-
if(false === $out = @tmpfile())
120+
if(false === $out = @fopen('php://temp', 'r+'))
121121
throw new Exception(
122122
'Failed to open a string buffer.', 0);
123123

0 commit comments

Comments
 (0)