summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysqli
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-13 16:08:45 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-13 16:08:45 +0200
commit37c85d73c4428bd19fafbba33992649fc29946d5 (patch)
tree86d4104dfa8b0e56c8d8cbb8c9e1c9ae0eae6e52 /system/database/drivers/mysqli
parent82d2cf17e77d0ca5ffdcaafb72ca2d3dc82dc142 (diff)
Apparently not all PHP builds consider mysqli::__construct() with no parameters to be the same as mysqli_init()
Diffstat (limited to 'system/database/drivers/mysqli')
-rw-r--r--system/database/drivers/mysqli/mysqli_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php
index f77176c16..dc72ecc5f 100644
--- a/system/database/drivers/mysqli/mysqli_driver.php
+++ b/system/database/drivers/mysqli/mysqli_driver.php
@@ -69,7 +69,7 @@ class CI_DB_mysqli_driver extends CI_DB {
? 'p:'.$this->hostname : $this->hostname;
$port = empty($this->port) ? NULL : $this->port;
$client_flags = ($this->compress === TRUE) ? MYSQLI_CLIENT_COMPRESS : 0;
- $mysqli = new mysqli();
+ $mysqli = mysqli_init();
return @$mysqli->real_connect($hostname, $this->username, $this->password, $this->database, $port, NULL, $client_flags)
? $mysqli : FALSE;