Permalink
Browse files

Apparently not all PHP builds consider mysqli::__construct() with no …

…parameters to be the same as mysqli_init()
  • Loading branch information...
1 parent 82d2cf1 commit 37c85d73c4428bd19fafbba33992649fc29946d5 @narfbg narfbg committed Oct 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/drivers/mysqli/mysqli_driver.php
@@ -69,7 +69,7 @@ public function db_connect($persistent = FALSE)
? '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;

0 comments on commit 37c85d7

Please sign in to comment.