public function AbstractProcessTest::testPhpDeadlock in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\TestsCode
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
}