You are here

public function AbstractProcessTest::testPhpDeadlock in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testPhpDeadlock()

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 761

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testPhpDeadlock() {
  $this
    ->markTestSkipped('Can cause PHP to hang');

  // Sleep doesn't work as it will allow the process to handle signals and close
  // file handles from the other end.
  $process = $this
    ->getProcess(self::$phpBin . ' -r "while (true) {}"');
  $process
    ->start();

  // PHP will deadlock when it tries to cleanup $process
}