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

Commit e7b3fed

Browse files
committed
Revert php://temp to tmpfile().
php://temp was a good idea regarding performances but the stream content is no more accessible from its name.
1 parent 5e1473b commit e7b3fed

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

0 commit comments

Comments
 (0)