diff --git a/tests/AbstractProcessTest.php b/tests/AbstractProcessTest.php index de7da35..545272e 100644 --- a/tests/AbstractProcessTest.php +++ b/tests/AbstractProcessTest.php @@ -643,6 +643,10 @@ public function testDetectsClosingStdoutWithoutHavingToWaitForExit() $this->markTestSkipped('Process pipes not supported on Windows'); } + if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) { + $this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827'); + } + $cmd = 'exec ' . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDOUT); sleep(1);'); $loop = $this->createLoop(); @@ -669,6 +673,10 @@ public function testDetectsClosingStdoutWithoutHavingToWaitForExit() */ public function testDetectsClosingStdoutSocketWithoutHavingToWaitForExit() { + if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) { + $this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827'); + } + $loop = $this->createLoop(); $process = new Process( (DIRECTORY_SEPARATOR === '\\' ? '' : 'exec ') . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDOUT); sleep(1);'), @@ -703,6 +711,10 @@ public function testKeepsRunningEvenWhenAllStdioPipesHaveBeenClosed() $this->markTestSkipped('Process pipes not supported on Windows'); } + if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) { + $this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827'); + } + $cmd = 'exec ' . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDIN);fclose(STDOUT);fclose(STDERR);sleep(1);'); $loop = $this->createLoop(); @@ -738,6 +750,10 @@ public function testKeepsRunningEvenWhenAllStdioPipesHaveBeenClosed() */ public function testKeepsRunningEvenWhenAllStdioSocketsHaveBeenClosed() { + if (PHP_VERSION_ID === 80107 || PHP_VERSION_ID === 80020) { + $this->markTestSkipped('Skip bugged PHP version: https://github.com/php/php-src/issues/8827'); + } + $loop = $this->createLoop(); $process = new Process( (DIRECTORY_SEPARATOR === '\\' ? '' : 'exec ') . $this->getPhpBinary() . ' -r ' . escapeshellarg('fclose(STDIN);fclose(STDOUT);fclose(STDERR);sleep(1);'),