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

memory limit set to 42Mb in index.php but 64Mb required?

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.0alpha1
    • 3.6.11, 3.7.9, 3.8.6, 3.9.0
    • Misc
    • None
    • Operating System: NA
      PHP Version: NA
      Database and version: NA
      Browser (and version): Na

    Description

      This page http://ez.no/doc/ez_publish/technical_manual/3_8/installation/normal_installation/requirements_for_doing_a_normal_installation#eztoc23485_2_1 states that <i>eZ publish needs at least 64 MB in order to complete the setup wizard.</i> yet code in index.php set the memory_limit value to 42Mb if it is lower.

      http://pubsvn.ez.no/nextgen/trunk/index.php

      $memLimit = ini_get( 'memory_limit' );
      if ($memLimit != '')
      {
          switch ( $memLimit{strlen( $memLimit ) - 1} )
          {
              case 'G':
                  $memLimit *= 1024;
              case 'M':
                  $memLimit *= 1024;
              case 'K':
                  $memLimit *= 1024;
          }
          if ( $memLimit != -1 && $memLimit < 44040192) /* 42*1024*1024 */
          {
              @ini_set( 'memory_limit', '42M' );
          }
      }
      

      If there is a 64Mb requirment shouldn't this code be setting 'memory_limit' to 64Mb instead of 42Mb?

      Cheers
      Bruce

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            zabbie zabbie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: