[Bb-trac] Re: [bbPress] #745: When using mysqli extension, db connect fails

bbPress bb-trac at lists.bbpress.org
Wed Oct 10 17:33:16 GMT 2007


#745: When using mysqli extension, db connect fails
----------------------------+-----------------------------------------------
 Reporter:  mdawaffe        |        Owner:               
     Type:  defect          |       Status:  new          
 Priority:  high            |    Milestone:  0.8.4 & Pings
Component:  Administration  |      Version:  0.8.3        
 Severity:  major           |   Resolution:               
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by chrishajer):

 I tried to apply DiffC to an svn checkout of 0.8.3, but part of it failed:

 {{{
 server:~/bbpress-test > patch -p0 < diffc.patch
 patching file bb-includes/classes.php
 patching file bb-includes/db-mysqli.php
 Hunk #2 FAILED at 79.
 1 out of 3 hunks FAILED -- saving rejects to file bb-includes/db-
 mysqli.php.rej
 patching file bb-includes/db.php
 patching file bb-admin/upgrade-schema.php
 }}}

 The content of bb-includes/db-mysqli.php.rej:

 {{{
 ***************
 *** 77,83 ****

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

 -               if ( !empty($this->charset) &&
 version_compare(mysql_get_server_info(), '4.1.0', '>=') )
                         $this->query("SET NAMES '$this->charset'");

                 $this->select( $server->database, $this->$dbhname );
 --- 79,85 ----

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

 +               if ( !empty($this->charset) &&
 version_compare(mysqli_get_server_info($this->$dbhname), '4.1.0', '>=') )
                         $this->query("SET NAMES '$this->charset'");

                 $this->select( $server->database, $this->$dbhname );
 }}}

 FYI

-- 
Ticket URL: <http://trac.bbpress.org/ticket/745#comment:8>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list