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

Generating autoload file inside extension will fail on non-windows OS

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 4.1.0
    • 4.1.0beta1
    • Misc
    • None

    Description

      Wrong permissions are used with PHP's mkdir function.

      php ./bin/php/ezpgenerateautoloads.php -e extension/my_extension

      ls -al extension/my_extension
      drwxr-xr-x 10 rla rla 4096 2009-03-12 16:35 .
      drwxr-xr-x 4 rla rla 4096 2009-03-12 13:39 ..
      d--------- 2 rla rla 4096 2009-03-12 16:35 autoload
      drwxr-xr-x 4 rla rla 4096 2009-03-12 13:34 classes

      Reason:
      Second parameter to mkdir is 'null' in 'kernel/private/classes/ezautoloadgenerator.php:219'
      mkdir( $targetBasedir, null, true );

      EZP_INI_FILE_PERMISSION is not set in this environment

      Attachments

        Activity

          People

            oms Ole Marius Smestad
            rla rla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: