public function __construct($addr, $callback)
 {
     if (!extension_loaded('libevent')) {
         throw new LogicException('LibEvent transport requires pecl/libevent extension');
     }
     parent::__construct($addr, $callback);
 }
 public function __construct($addr, $callback)
 {
     if (PHP_MAJOR_VERSION === 5 and PHP_MINOR_VERSION === 3 and in_array(PHP_RELEASE_VERSION, array(9, 10))) {
         throw new \LogicException('PHP 5.3.9 and 5.3.10 have bug in stream_get_line(). see https://bugs.php.net/bug.php?id=60817');
     } elseif (PHP_MAJOR_VERSION === 5 and PHP_MINOR_VERSION === 4 and PHP_RELEASE_VERSION <= 3) {
         throw new \LogicException('PHP versions earlier than 5.4.3 have bug in stream_get_line(). see https://bugs.php.net/bug.php?id=60817');
     }
     parent::__construct($addr, $callback);
 }