Lines Matching refs:input
26 private $input; variable in Symfony\\Component\\Process\\Pipes\\AbstractPipes
33 public function __construct($input) argument
35 if (\is_resource($input) || $input instanceof \Iterator) {
36 $this->input = $input;
37 } elseif (\is_string($input)) {
38 $this->inputBuffer = $input;
40 $this->inputBuffer = (string) $input;
81 if (\is_resource($this->input)) {
82 stream_set_blocking($this->input, 0);
100 $input = $this->input;
102 if ($input instanceof \Iterator) {
103 if (!$input->valid()) {
104 $input = null;
105 } elseif (\is_resource($input = $input->current())) {
106 stream_set_blocking($input, 0);
108 if (!\is_string($input)) {
109 if (!is_scalar($input)) {
110 …ut only scalars and stream resources are supported.', \get_class($this->input), \gettype($input)));
112 $input = (string) $input;
114 $this->inputBuffer = $input;
115 $this->input->next();
116 $input = null;
118 $input = null;
139 if ($input) {
141 $data = fread($input, self::CHUNK_SIZE);
153 if (feof($input)) {
154 if ($this->input instanceof \Iterator) {
155 $this->input->next();
157 $this->input = null;
164 … (!isset($this->inputBuffer[0]) && !($this->input instanceof \Iterator ? $this->input->valid() : $…
165 $this->input = null;