Forums

Join
bbPress Support ForumsRequests and FeedbackDoes the order of parameters in db-mysqli.php matter?

Info

Does the order of parameters in db-mysqli.php matter?

  1. Line 78 in db-mysqli.php looks like this:

    $this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );

    I thought the order of the parameters was important, and should be:

    host, user, pass, dbname, port, socket

    From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it's just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.

    Thanks.

  2. The database is selected a few lines down on line 83.

    The socket (final and optional) parameter is not used as socket style connections aren't supported.

  3. Thanks Sam.

  4. You must log in to post.