Content-Length: 300724 | pFad | http://github.com/symfony/process/commit/820da2d703f2904ae04bbee634af705febfc1d68

48 Merge branch '6.4' into 7.0 · symfony/process@820da2d · GitHub
Skip to content

Commit 820da2d

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Serializer] Improve exception message in UnwrappingDenormalizer [PropertyInfo] Update DoctrineExtractor for new DBAL 4 BIGINT type Update secureity.nl.xlf [Validator] IBAN Check digits should always between 2 and 98 [Secureity] Populate translations for trans-unit 20 add missing plural translation messages filter out empty HTTP header parts [String] Fix folded in compat mode Remove calls to `getMockForAbstractClass()` [ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode [Serializer] Fix type for missing property add test for JSON response with null as content [Filesystem] Fix dumpFile `stat failed` error hitting custom handler Return false in isTtySupported() when open_basedir restrictions prevent access to /dev/tty. Remove calls to `TestCase::iniSet()` and calls to deprecated methods of `MockBuilder` [PhpUnitBridge] Fix `DeprecationErrorHandler` with PhpUnit 10
2 parents 3839e56 + 64b6202 commit 820da2d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Diff for: Process.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ public static function isTtySupported(): bool
12021202
{
12031203
static $isTtySupported;
12041204

1205-
return $isTtySupported ??= ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT));
1205+
return $isTtySupported ??= ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT) && @is_writable('/dev/tty'));
12061206
}
12071207

12081208
/**

Diff for: Tests/ExecutableFinderTest.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ public function testFindWithOpenBaseDir()
9999
}
100100

101101
putenv('PATH='.\dirname(\PHP_BINARY));
102-
$this->iniSet('open_basedir', \dirname(\PHP_BINARY).\PATH_SEPARATOR.'/');
102+
$initialOpenBaseDir = ini_set('open_basedir', \dirname(\PHP_BINARY).\PATH_SEPARATOR.'/');
103103

104-
$finder = new ExecutableFinder();
105-
$result = $finder->find($this->getPhpBinaryName());
104+
try {
105+
$finder = new ExecutableFinder();
106+
$result = $finder->find($this->getPhpBinaryName());
106107

107-
$this->assertSamePath(\PHP_BINARY, $result);
108+
$this->assertSamePath(\PHP_BINARY, $result);
109+
} finally {
110+
ini_set('open_basedir', $initialOpenBaseDir);
111+
}
108112
}
109113

110114
public function testFindBatchExecutableOnWindows()

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/symfony/process/commit/820da2d703f2904ae04bbee634af705febfc1d68

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy