Skip to content

Commit

Permalink
Write to memory
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Apr 30, 2021
1 parent dd3a93b commit 63a96e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion str_putcsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
function str_putcsv(array $fields, string $delimiter = ',', string $enclosure = '"', string $escape = '\\'): string
{
// Open an in-memory file resource
$fp = \Safe\fopen('php://temp', 'r+b');
$fp = \Safe\fopen('php://memory', 'r+b');

try {
// Write the fields array to the file resource as a CSV line
Expand Down

0 comments on commit 63a96e6

Please sign in to comment.