if ($this->hostname
[0
] === '/'
) { $hostname = null;
$port = null;
$socket =
$this->hostname;
} 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
) {