From ee17956d89f0a353bef3dc4cbbd609cb08860359 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 6 Mar 2017 15:33:31 +0000 Subject: [PATCH] Issue #2745123 by drugan, Mile23, mpdonadio, alexpott, slasher13, Jo Fitzgerald, drunken monkey, nikolas.costa, Yogesh Pawar, blazey, benjifisher, dawehner, mondrake, penyaskito, fietserwin, othermachines: Simpletest module crashes on cleanup, uninstall --- core/modules/simpletest/simpletest.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index aa1088f2c1e6..7d72aa44bcd5 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -692,7 +692,9 @@ function simpletest_clean_temporary_directories() { foreach ($files as $file) { if ($file[0] != '.') { $path = DRUPAL_ROOT . '/sites/simpletest/' . $file; - file_unmanaged_delete_recursive($path, ['Drupal\simpletest\TestBase', 'filePreDeleteCallback']); + file_unmanaged_delete_recursive($path, function ($any_path) { + @chmod($any_path, 0700); + }); $count++; } } -- GitLab