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

ezpgenerateautoloads.php doesn`t work well with config.php autoloading

    XMLWordPrintable

Details

    Description

      If I do autoloading in the config.php... nothing goes well...

      My config looks like this... I use zend framework in addition...

      If you then generat the autoloads again you get a fatal error.

      My patch solves this... it is rather simple.... you use the default automload...

      <?php
      set_include_path( get_include_path() . PATH_SEPARATOR . '/var/www/include/ZendFramework-1.9.2/library' );
      
      date_default_timezone_set( 'America/Chicago' );
      define( 'EZP_INI_FILEMTIME_CHECK', false );
      define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', false );
      if ( file_exists( 'lib/ezc' ) )
      {
          define( 'EZP_USE_BUNDLED_COMPONENTS', true );
      }
      define( 'EZP_INI_FILE_PERMISSION', 0666 );
      // Zend autoload
      require_once 'Zend/Loader/Autoloader.php';
      $ZendLoader = Zend_Loader_Autoloader::getInstance();
      spl_autoload_register( array( 'Zend_Loader_Autoloader', 'autoload' ) );
      ?>
      

      Attachments

        Activity

          People

            gl gl
            a7ccb6eb-752c-4f73-908e-4baabf343cdd@accounts.ibexa.co Björn Dieding
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: