From f26b8f3f310df60693deab7d977dd5fcc3adaf09 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 18 Nov 2018 11:34:40 +0100 Subject: PHP 7.1 tempnam warning fix (#2134) And suggested dir was wrong. https://bugs.php.net/bug.php?id=69489 ``` Notice: tempnam(): file created in the system's temporary directory in /var/www/html/FreshRSS/app/Controllers/importExportController.php on line 800
``` --- app/Controllers/importExportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php index 9e485dd28..2d8d4e01d 100644 --- a/app/Controllers/importExportController.php +++ b/app/Controllers/importExportController.php @@ -797,7 +797,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController { } // From https://stackoverflow.com/questions/1061710/php-zip-files-on-the-fly - $zip_file = tempnam('tmp', 'zip'); + $zip_file = @tempnam('/tmp', 'zip'); $zip = new ZipArchive(); $zip->open($zip_file, ZipArchive::OVERWRITE); -- cgit v1.2.3