Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
59 | public function initScanner(){ |
||
60 | parent::initScanner(); |
||
61 | $this->writeHandle = @fsockopen($this->avHost, $this->avPort); |
||
62 | if (!$this->getWriteHandle()) { |
||
63 | throw new InitException( |
||
64 | sprintf( |
||
65 | 'Could not connect to host "%s" on port %d', $this->avHost, $this->avPort |
||
66 | ) |
||
67 | ); |
||
68 | } |
||
69 | // request scan from the daemon |
||
70 | @fwrite($this->getWriteHandle(), "nINSTREAM\n"); |
||
|
|||
71 | } |
||
72 | } |
||
73 |
If you suppress an error, we recommend checking for the error condition explicitly: