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

allow usage of ezcomponents installed from zip file

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.3, 4.1.0
    • Install, Misc
    • None

    Description

      The code in autoload is buggy for the case that ezc are installed from zip file:

      $useBundledComponents = defined( 'EZP_USE_BUNDLED_COMPONENTS' ) ? EZP_USE_BUNDLED_COMPONENTS === true : file_exists( 'lib/ezc' );
      if ( $useBundledComponents )
      {
          set_include_path( './lib/ezc' . PATH_SEPARATOR . get_include_path() );
          require 'Base/src/base.php';
          $baseEnabled = true;
      }
      else if ( defined( 'EZC_BASE_PATH' ) )
      {
          require EZC_BASE_PATH;
          $baseEnabled = true;
      }
      else
      {
          $baseEnabled = @include 'ezc/Base/base.php';
          if ( !$baseEnabled ) // NEVER HAPPENS!
          {
              $baseEnabled = @include 'Base/src/base.php';
          }
      }
      

      The problem here is that include never returns true!
      The fix: check for class ezcBase instead.
      AND fix it in ezpgenerateautoloads too!

      Attachments

        Activity

          People

            unknown unknown
            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: