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

[placeholder] Workaround for PHP 5.2.9 array_unique issue

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 4.3.0beta2
    • 4.1.4, 4.2.0
    • Misc
    • None

    Description

      PHP 5.2.9 changed the default sort flag used from SORT_STRING to SORT_REGULAR, in 5.2.10 changed it back.
      Since some distro's seems to have chosen 5.2.9 as version (suse, check if it is patched version for this bug or not) we should maybe workaround this by setting the sort flag manually.

      Example:

      $array = array_unique( $array, SORT_STRING );
      

      http://php.net/array_unique

      Note: make sure SORT_STRING is defined in all supported versions of php, read: 5.1.x.

      Attachments

        Activity

          People

            patrick.allaert patrick.allaert
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: