登録出来たので単に登録出来てなかっただけの模様。。 改めて登録します。
PHP8でZipArchiveを使おうとすると”Using empty file as ZipArchive is deprecated”と怒られる
怒られるパターン
$tmpfile = tempnam(sys_get_temp_dir(), 'Zip'); $zip = new ZipArchive; $zip->open($tmpfile, ZipArchive::CREATE);
Deprecated: ZipArchive::open(): Using empty file as ZipArchive is deprecated in <
CREATEの部分をOVERWRITEにする事で解決
$tmpfile = tempnam(sys_get_temp_dir(), 'Zip'); $zip = new ZipArchive; $zip->open($tmpfile, ZipArchive::OVERWRITE);
検索
コメントを残す