Skip to content

Commit

Permalink
Switch file handler to php://temp
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Sep 20, 2024
1 parent adcdfb0 commit 42c131a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/CanHandleFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static function hasNullBytes(string $string): bool
*/
private static function getHandleFromData($data)
{
$handle = fopen('php://memory', 'r+');
$handle = fopen('php://temp', 'r+');
fwrite($handle, $data);
rewind($handle);

Expand Down

0 comments on commit 42c131a

Please sign in to comment.