Lines Matching refs:this

69     $this->setCommand($command);
70 $this->setTimeout($timeout);
78 $this->timeout = (int)$secs;
86 return $this->timeout;
94 $this->flags = $flags;
102 return $this->flags;
110 if ($path == self::AUTO_DETECT) $path = $this->findSendmail();
111 $this->path = $path;
119 return $this->path;
168 if ($command == self::AUTO_DETECT) $command = $this->findSendmail() . " -bs";
176 $this->setPath($path);
177 $this->setFlags($flags);
185 return $this->getPath() . " -" . $this->getFlags();
194 …if (!$this->isAlive()) throw new Swift_ConnectionException("The sendmail process is not alive and …
195 …if (!@fwrite($this->pipes[0], $command . $end) && !empty($command)) throw new Swift_ConnectionExc…
196 fflush($this->pipes[0]);
205 if (strpos($this->getFlags(), "t") !== false) return;
206 …if (!$this->isAlive()) throw new Swift_ConnectionException("The sendmail process is not alive and …
212 stream_set_timeout($this->pipes[1], $this->timeout);
213 $tmp = @fgets($this->pipes[1]);
221 fflush($this->pipes[1]);
231 if (strpos($this->getFlags(), "t") !== false)
233 switch (strtolower($this->request))
244 $this->send = true;
250 else return $this->pipeOut();
259 if (strpos($this->getFlags(), "t") !== false)
261 … if (!$this->send && strpos($command, " ")) $command = substr($command, strpos($command, " ")+1);
262 elseif ($this->send)
264 $this->pipeIn($command);
266 $this->request = $command;
267 $this->send = (strtolower($command) == "data");
269 else $this->pipeIn($command, $end);
282 if (!$this->getPath() || !$this->getFlags())
288 $log->add("Trying to stat the executable '" . $this->getPath() . "'.");
290 if (!@lstat($this->getPath()))
293 …"Sendmail cannot be seen with lstat(). The command given [" . $this->getCommand() . "] does not a…
302 $this->proc = proc_open($this->getCommand(), $pipes_spec, $this->pipes);
304 if (!$this->isAlive())
320 foreach ((array)$this->pipes as $pipe)
325 if ($this->proc)
327 proc_close($this->proc);
328 $this->pipes = null;
329 $this->proc = null;
338 return ($this->proc !== false
339 && is_resource($this->proc)
340 && is_resource($this->pipes[0])
341 && is_resource($this->pipes[1])
342 && $this->proc !== null);
350 $this->stop();