Symfony\Component\Process\Process::isOutputDisabled PHP Method

isOutputDisabled() public method

Returns true in case the output is disabled, false otherwise.
public isOutputDisabled ( ) : boolean
return boolean
    public function isOutputDisabled()
    {
        return $this->outputDisabled;
    }

Usage Example

 public function __construct(Process $process)
 {
     $error = sprintf('PHP error message was detected when running this command:' . PHP_EOL . '  %s' . PHP_EOL . 'Moodle scripts should run without any PHP errors.', $process->getCommandLine());
     if (!$process->isOutputDisabled()) {
         $error .= sprintf("\n\nError Output\n============\n%s", $process->getErrorOutput());
     }
     parent::__construct($error);
 }
All Usage Examples Of Symfony\Component\Process\Process::isOutputDisabled