public function ProcessTest::testPhpDeadlock

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessTest.php, line 145

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testPhpDeadlock() {
  $this
    ->markTestSkipped('Can course 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 = new Process('php -r "while (true) {}"');
  $process
    ->start();

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