Closed 529834149 closed 4 years ago
header big
`//本次的最新数据全部写完到bcp文件 关闭文件
isset($open)?@fclose($fopen):$open=null;
//压缩文件名称
$zipname = "data_".time().".zip";
//压缩文件夹 $zipFile = new \PhpZip\ZipFile();
$this->zipfile->addDirRecursive($beforepath); // save the archive to a file
$this->zipfile->setPassword('run1234!@#');
$this->zipfile->saveAsFile($zippath.'/'.$zipname);
$this->zipfile->close(); `
Fatal error: Call to undefined function PhpZip\IO\Filter\Cipher\WinZipAes\random_bytes() in F:\xampp\htdocs\bokee_upload_data\vendor\nelexa\zip\src\IO\Filter\Cipher\WinZipAes\WinZipAesEncryptionStreamFilter.php on line 104
You haven't installed the random_compat dependency, which is required for PHP < 7.
Execute:
composer require paragonie/random_compat
Thank you. I think it's faster than before. The version of 3.0.2 used before is now upgraded to 3.3. The speed is faster and the compression and decompression are normal. Thank you very much
Description
Example
When I generated the compressed package, the password of the compressed package did not take effect, `//本次的最新数据全部写完到bcp文件 关闭文件
isset($open)?@fclose($fopen):$open=null;