/** Constructor */ public function __construct() { parent::__construct(); $this->streams = $this->handlers = array(self::READ => array(), self::WRITE => array()); $this->running = true; if (function_exists('event_base_new')) { $this->evbase = event_base_new(); } }