else { $hostname =
($persistent === true
) ? 'p:' .
$this->hostname :
$this->hostname;
$port =
empty($this->port
) ? null :
$this->port;
$socket = '';
} $clientFlags =
($this->compress === true
) ? MYSQLI_CLIENT_COMPRESS : 0;
$this->mysqli =
mysqli_init();
mysqli_report(MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_INDEX
);
$this->mysqli->
options(MYSQLI_OPT_CONNECT_TIMEOUT, 10
);
if ($this->numberNative === true
) { $this->mysqli->
options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, 1
);
} if (isset($this->strictOn
)) { if ($this->strictOn
) { $this->mysqli->
options( MYSQLI_INIT_COMMAND,
"SET SESSION sql_mode = CONCAT(@@sql_mode, ',', 'STRICT_ALL_TABLES')"
);
}