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

Open_basedir warnings

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.4, 4.1.1, 4.2.0alpha1
    • 4.0.0, 4.0.3, 4.1.0
    • Misc
    • None

    Description

      We use open_basedir per vhost. Normally this works well but with 4.0 there are a few issues.

      In kernel/common/template the variable $compatAutoLoadPath defaults to an empty array. When added to $autoLoadPathList this produces an open_basedir PHP warning.

      The solution is to remove $compateAutoLoadPath or to remove empty strings from the autoload path.

      In lib/ezi18n/classes/ezcodepage.php on line 540 the line '$permissionArray = eZCodePage::permissionSetting();' can return false when there is no cache available. The following line '$cache_dir = $permissionArray['var_directory'] . "/codepages/";' then sets the variable '$cache_dir' to '/codepages/' which triggers another open_basedir warning.

      The solution this time is to accommodate the 'false' value passed back and not use the file_exists call.

      Regards,

      Paul

      Steps to reproduce

      This occurs on a basic install.

      Attachments

        Activity

          People

            andre1 andre1
            paulf paulf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: