Skip to content

Commit 19d5e14

Browse files
committed
Merge pull request #7 from clue/hhvm
Support HHVM
2 parents 726b8ea + 712b341 commit 19d5e14

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22
php:
33
- 5.4
44
- 5.3
5+
- hhvm
56
before_script:
67
- composer install --dev --prefer-source --no-interaction
78
script:

Datagram/Buffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function handleWrite($data, $remoteAddress)
110110
$ret = @stream_socket_sendto($this->socket, $data, 0, $remoteAddress);
111111
}
112112

113-
if ($ret < 0) {
113+
if ($ret < 0 || $ret === false) {
114114
$error = error_get_last();
115115
throw new Exception('Unable to send packet: ' . trim($error['message']));
116116
}

0 commit comments

Comments
 (0)