From 9a516b55a0324683254daf90e7649c0bb261a5d3 Mon Sep 17 00:00:00 2001 From: Tymoteusz Motylewski <t.motylewski@gmail.com> Date: Thu, 5 Feb 2015 20:39:13 +0100 Subject: [PATCH] [BUGFIX] Fix open_basedir warning when entering install tool Due to the bug in php https://bugs.php.net/bug.php?id=67378 Warning is triggered when you have open_basedir set up. This patch suppress the warning as a workaround. This code is executed only when calling the install tool. It doesn't influence FE or BE requests so it's acceptable to use @ operator. Resolves: #64882 Releases: master Change-Id: I7881103464ec018cc0a23f47f6cd8c05bb34929c Reviewed-on: http://review.typo3.org/36680 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Xavier Perseguers <xavier@typo3.org> Tested-by: Xavier Perseguers <xavier@typo3.org> --- typo3/sysext/install/Classes/Service/EnableFileService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/install/Classes/Service/EnableFileService.php b/typo3/sysext/install/Classes/Service/EnableFileService.php index e81c02922faa..cd5f62526fc1 100644 --- a/typo3/sysext/install/Classes/Service/EnableFileService.php +++ b/typo3/sysext/install/Classes/Service/EnableFileService.php @@ -184,7 +184,7 @@ class EnableFileService { */ static protected function getFirstInstallFilePaths() { $files = array_filter(scandir(self::$sitePath), function($file) { - return (is_file(self::$sitePath . $file) && preg_match('~^' . self::FIRST_INSTALL_FILE_PATH . '.*~i', $file)); + return (@is_file(self::$sitePath . $file) && preg_match('~^' . self::FIRST_INSTALL_FILE_PATH . '.*~i', $file)); }); return $files; } -- GitLab