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

kernel/content/history.php - PHP notices caused by array_unique use

    XMLWordPrintable

Details

    Description

      When accessing /content/history/<node_id> with PHP Notices display enabled, an error Array to string conversion is shown for each displayed version.

      This is because of the usage of array_unique() which is not intended to be used on multi-dimensional array (see http://php.net/array_unique in the "Notes" section).

      array_unique() performs differently under different PHP versions. Please have a look at http://3v4l.org/jvZbD to see how the different PHP versions are affected.

      The array I used there is an actual version array we have in our project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgamez jgamez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m