| @@ 155-162 (lines=8) @@ | ||
| 152 | * |
|
| 153 | * @return resource |
|
| 154 | */ |
|
| 155 | protected function getInputStream($input) |
|
| 156 | { |
|
| 157 | $stream = fopen('php://memory', 'r+', false); |
|
| 158 | fwrite($stream, $input); |
|
| 159 | rewind($stream); |
|
| 160 | ||
| 161 | return $stream; |
|
| 162 | } |
|
| 163 | } |
|
| 164 | ||
| @@ 194-201 (lines=8) @@ | ||
| 191 | * |
|
| 192 | * @return resource |
|
| 193 | */ |
|
| 194 | protected function getInputStream($input) |
|
| 195 | { |
|
| 196 | $stream = fopen('php://memory', 'r+', false); |
|
| 197 | fwrite($stream, $input); |
|
| 198 | rewind($stream); |
|
| 199 | ||
| 200 | return $stream; |
|
| 201 | } |
|
| 202 | } |
|
| 203 | ||