diff --git a/core/07-unpack.php b/core/07-unpack.php index cb87b4e..8e875fc 100644 --- a/core/07-unpack.php +++ b/core/07-unpack.php @@ -22,11 +22,12 @@ if(!file_exists($paths->extra_data_directory) || http_response_code(503); exit(page_renderer::render_minimal("Unpacking error - $settings->sitename", "
Oops! It looks like $settings->sitename isn't able to change the last modified time of the extra data directory.
$error_message_help")); } - - $temp_file = tmpfile(); + + $temp_filename = tempnam(sys_get_temp_dir(), "PeppermintExtract"); + $temp_file = fopen($temp_filename, "wb+"); if($temp_file === false) { http_response_code(503); - exit(page_renderer::render_minimal("Unpacking error - $settings->sitename", "Oops! $settings->sitename wasn't able to create a new temporary file with tmpfile()
. Perhaps your server is mis-configured?
Oops! $settings->sitename wasn't able to create a new temporary file with tempnam()
. Perhaps your server is mis-configured?
Oops! $settings->sitename wasn't able to close the temporary file that it created with tmpfile()
. Perhaps your server is mis-configured?