Issue #3174038 by alexpott, Gábor Hojtsy: ZipArchive::open(): Using empty file as ZipArchive is deprecated in PHP 8
parent
c2bd1a0304
commit
2d8c912cd4
|
@ -77,7 +77,7 @@ class DrupalSelenium2Driver extends Selenium2Driver {
|
||||||
$tempFilename = tempnam('', 'WebDriverZip');
|
$tempFilename = tempnam('', 'WebDriverZip');
|
||||||
|
|
||||||
$archive = new \ZipArchive();
|
$archive = new \ZipArchive();
|
||||||
$result = $archive->open($tempFilename, \ZipArchive::CREATE);
|
$result = $archive->open($tempFilename, \ZipArchive::OVERWRITE);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
throw new DriverException('Zip archive could not be created. Error ' . $result);
|
throw new DriverException('Zip archive could not be created. Error ' . $result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue