Issue #3174038 by alexpott, Gábor Hojtsy: ZipArchive::open(): Using empty file as ZipArchive is deprecated in PHP 8

merge-requests/25/head
catch 2020-09-30 13:36:51 +01:00
parent c2bd1a0304
commit 2d8c912cd4
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class DrupalSelenium2Driver extends Selenium2Driver {
$tempFilename = tempnam('', 'WebDriverZip');
$archive = new \ZipArchive();
$result = $archive->open($tempFilename, \ZipArchive::CREATE);
$result = $archive->open($tempFilename, \ZipArchive::OVERWRITE);
if (!$result) {
throw new DriverException('Zip archive could not be created. Error ' . $result);
}