Announcement

Collapse
No announcement yet.

PHP 5.5 and mysql socket support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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!

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

    Scott me up, Beamie!

    Comment


    • #3
      Hi Boot

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

      Comment


      • #4
        Originally posted by maha191 View Post
        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...
        X