We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371095b commit 4feac45Copy full SHA for 4feac45
src/Factory.php
@@ -10,8 +10,6 @@
10
class Factory
11
{
12
private $loop;
13
- private $rawFactory;
14
- private $datagramFactory;
15
16
public function __construct(LoopInterface $loop)
17
@@ -31,7 +29,10 @@ public function createSender()
31
29
public function createReceiver($address)
32
30
33
if (!defined('MCAST_JOIN_GROUP')) {
34
- throw new BadMethodCallException('MCAST_JOIN_GROUP not defined');
+ throw new BadMethodCallException('MCAST_JOIN_GROUP not defined (requires PHP 5.4+)');
+ }
+ if (!function_exists('socket_import_stream')) {
35
+ throw new BadMethodCallException('Function socket_import_stream missing (requires ext-sockets and PHP 5.4+)');
36
}
37
38
$parts = parse_url('udp://' . $address);
0 commit comments