From 2d8c912cd414ee2567ac96188a13aa3d12708f12 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 30 Sep 2020 13:36:51 +0100 Subject: [PATCH] =?UTF-8?q?Issue=20#3174038=20by=20alexpott,=20G=C3=A1bor?= =?UTF-8?q?=20Hojtsy:=20ZipArchive::open():=20Using=20empty=20file=20as=20?= =?UTF-8?q?ZipArchive=20is=20deprecated=20in=20PHP=208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php b/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php index 3719bcc64e5d..605819c33820 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php @@ -77,7 +77,7 @@ public function uploadFileAndGetRemoteFilePath($path) { $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); } -- GitLab