killed warnings if executables not found

This commit is contained in:
Ralf Becker 2004-08-06 12:38:14 +00:00
parent 009a58f9a4
commit e2eed6a73f

View File

@ -568,7 +568,7 @@
{ {
$this->$name = $path; // a reasonable default for *nix $this->$name = $path; // a reasonable default for *nix
if (!($Ok = is_executable($this->$name))) if (!($Ok = @is_executable($this->$name)))
{ {
if (file_exists($this->$name)) if (file_exists($this->$name))
{ {
@ -590,7 +590,7 @@
$this->$name = substr($this->$name,0,$pos); $this->$name = substr($this->$name,0,$pos);
} }
} }
if (!$Ok && !is_executable($this->$name)) if (!$Ok && !@is_executable($this->$name))
{ {
$this->$name = $name; // hopefully its in the path $this->$name = $name; // hopefully its in the path
} }