diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 4af26e85a2..7f065efe26 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -213,6 +213,9 @@ class Process $this->fileHandles = array( self::STDOUT => tmpfile(), ); + if (false === $this->fileHandles[self::STDOUT]) { + throw new RuntimeException('A temporary file could not be opened to write the process output to, verify that your TEMP environment variable is writable'); + } $this->readBytes = array( self::STDOUT => 0, );