|
@@ 143-146 (lines=4) @@
|
| 140 |
|
throw new ConfigException(ConfigException::IP_ERROR_MESSAGE, ConfigException::IP_ERROR_CODE); |
| 141 |
|
} |
| 142 |
|
} |
| 143 |
|
if (!empty($this->port) && false === filter_var($this->port, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]])) |
| 144 |
|
{ |
| 145 |
|
throw new ConfigException(ConfigException::PORT_ERROR_MESSAGE, ConfigException::PORT_ERROR_CODE); |
| 146 |
|
} |
| 147 |
|
if (!empty($this->password) && false === is_string($this->password) && false === is_numeric($this->password)) |
| 148 |
|
{ |
| 149 |
|
throw new ConfigException(ConfigException::PASSWORD_ERROR_MESSAGE, ConfigException::PASSWORD_ERROR_CODE); |
|
@@ 169-172 (lines=4) @@
|
| 166 |
|
} |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
if (!empty($this->slaveId) && false === filter_var($this->slaveId, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]])) |
| 170 |
|
{ |
| 171 |
|
throw new ConfigException(ConfigException::SLAVE_ID_ERROR_MESSAGE, ConfigException::SLAVE_ID_ERROR_CODE); |
| 172 |
|
} |
| 173 |
|
if (!empty($this->binLogFileName) && false === is_string($this->binLogFileName)) |
| 174 |
|
{ |
| 175 |
|
throw new ConfigException(ConfigException::BIN_LOG_FILE_NAME_ERROR_MESSAGE, ConfigException::BIN_LOG_FILE_NAME_ERROR_CODE); |
|
@@ 177-180 (lines=4) @@
|
| 174 |
|
{ |
| 175 |
|
throw new ConfigException(ConfigException::BIN_LOG_FILE_NAME_ERROR_MESSAGE, ConfigException::BIN_LOG_FILE_NAME_ERROR_CODE); |
| 176 |
|
} |
| 177 |
|
if (!empty($this->binLogPosition) && false === filter_var($this->binLogPosition, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]])) |
| 178 |
|
{ |
| 179 |
|
throw new ConfigException(ConfigException::BIN_LOG_FILE_POSITION_ERROR_MESSAGE, ConfigException::BIN_LOG_FILE_POSITION_ERROR_CODE); |
| 180 |
|
} |
| 181 |
|
if (!empty($this->mariaDbGtid) && false === is_string($this->mariaDbGtid)) |
| 182 |
|
{ |
| 183 |
|
throw new ConfigException(ConfigException::MARIADBGTID_ERROR_MESSAGE, ConfigException::MARIADBGTID_ERROR_CODE); |