Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18127

php warning in master / slave setup with mysqli

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0
    • 4.3.0, 4.4.0, 4.5.0beta2
    • Database related
    • None

    Description

      Tested using the mysqli code, but most likely happening with mysql too:

      In master/slave mode, when the ezdb object is created, it tries to connect to writedb and readdb. It calls thus twice the connect() method, which in turns calls $this->setError(); (line 143 in 450beta1).
      The problem is that on teh 2nd connect() call, $this->IsConnected equals true, but $this->DBConnection is false. Hence a php warning is generated by calls to mysqli_connect_error and mysqli_error and mysqli_errno

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: