/** * Overload so we can check for some special options * * @param string $ip * @param int $port * @param array $options */ public function __construct($ip = FALSE, $port = FALSE, $options = array()) { // Got to do this first parent::__construct($ip, $port, $options); // Check for override in master server port (query) if (isset($this->options['master_server_port']) && !empty($this->options['master_server_port'])) { // Override the master server port $this->master_server_port = (int) $this->options['master_server_port']; } }