bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

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

(3 posts)
  • Started 11 months ago by chrishajer
  • Latest reply from chrishajer
  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.

    Posted 11 months ago #
  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.

    Posted 11 months ago #
  3. Thanks Sam.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.