PHP 5.5 and mysql socket support

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Boothby
    Member
    • Aug 2002
    • 81
    • 3.8.x

    [Forum] PHP 5.5 and mysql socket support

    A member of vBG who switched from PHP 5.4 to 5.5 reported this error:
    Code:
    Database error in vBulletin :
    
    mysqli_real_connect() expects parameter 6 to be long, string given /xxx/includes/class_core.php on line 1359
    This line refers to mysqli_real_connect() and parameter 6 is the port.

    bool mysqli_real_connect ( mysqli $link [, string $host [, string $username [, string $passwd [, string $dbname [, int $port [, string $socket [, int $flags ]]]]]]] )
    This is what he has in his config.php
    PHP Code:
    $config['MasterServer']['port'] ='/tmp/mysql5.sock'
    His hoster seems to be 1&1.

    I asked him to change the line 1359 to:

    PHP Code:
    $connect $this->functions['connect']($link$servername,  $username$password''null'/tmp/mysql5.sock'); 
    That fixed the problem, but it is only a temporarily solution. It would help if you could add support for connections to database server via socket.
    Stefan

    Scott me up, Beamie!
  • Boothby
    Member
    • Aug 2002
    • 81
    • 3.8.x

    #2
    Tracker entry: http://tracker.vbulletin.com/browse/VBIV-16125
    Stefan

    Scott me up, Beamie!

    Comment

    • maha191
      Member
      • Jan 2006
      • 39
      • 4.2.x

      #3
      Hi Boot

      It works better than php 5.4 or not.
      Thailand Vbulletin |Thailand country radio

      Comment

      • Boothby
        Member
        • Aug 2002
        • 81
        • 3.8.x

        #4
        Originally posted by maha191
        Hi Boot It works better than php 5.4 or not.
        I don't know. It was a fix for an other user at vBulletin Germany.
        Stefan

        Scott me up, Beamie!

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...