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

String conversion in MySQL driver causes unexpected behavior

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: High High
    • Future
    • 4.1.3, 4.2.0alpha1
    • Database related
    • None

    Description

      Incorrect configuration of the system, e.g. output encoding and database driver-encoding set to different values, will cause empty return values to altered. That is null gets changed into an empty string.

      This causes problems where you have code similar to this:

      $dbResult !== null
      

      One example of this is in the content object state classes.

      Attachments

        Activity

          People

            unknown unknown
            oms Ole Marius Smestad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: