File: Finder-Add-system-path-to-open_basedir-for-tests.patch

package info (click to toggle)
symfony 7.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 129,560 kB
  • sloc: php: 1,503,693; xml: 6,816; javascript: 1,043; sh: 586; makefile: 241; pascal: 70
file content (22 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Wed, 24 May 2023 00:46:46 +0200
Subject: [Finder] Add system path to open_basedir for tests

Forwarded: not needed
---
 src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php b/src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php
index 11d0ba3..fb06771 100644
--- a/src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php
+++ b/src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php
@@ -35,7 +35,7 @@ class FinderOpenBasedirTest extends Iterator\RealIteratorTestCase
                 ->ignoreVCSIgnored(true)
         );
 
-        $openBaseDir = \dirname(__DIR__, 5).\PATH_SEPARATOR.self::toAbsolute('gitignore/search_root');
+        $openBaseDir = \dirname(__DIR__, 5).\PATH_SEPARATOR.self::toAbsolute('gitignore/search_root').\PATH_SEPARATOR.'/usr/share/php';
 
         if ($deprecationsFile = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
             $openBaseDir .= \PATH_SEPARATOR.$deprecationsFile;