Skip to content

Commit

Permalink
Add handle return
Browse files Browse the repository at this point in the history
Fixes the bug that occurred when the handle is initialized at the time of
writing.
The write function uses the return of the open function, but the open
function does not return anything.
  • Loading branch information
ricardosequeira committed Nov 18, 2017
1 parent fd7cff8 commit aa0fe0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Log/Engine/LogstashLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function config($config = array()) {
*/
protected function _open($host, $port, $timeout) {
$handle = pfsockopen($host, $port, $errNo, $errSt, $timeout);
return $handle;
}

/**
Expand Down

0 comments on commit aa0fe0d

Please sign in to comment.