| 1 | <?php |
||
| 21 | abstract class External extends AbstractScanner { |
||
| 22 | /** |
||
| 23 | * Send an empty chunk to indicate the end of stream, |
||
| 24 | * read response and close the handle |
||
| 25 | */ |
||
| 26 | 4 | protected function shutdownScanner() { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Prepend a chunk sent to ClamAv with its length |
||
| 40 | * |
||
| 41 | * @param string $data |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 4 | protected function prepareChunk($data) { |
|
| 49 | } |
||
| 50 |
If you suppress an error, we recommend checking for the error condition explicitly: