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

PHP notice when defining a constant in config.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.1.0beta1
    • Misc
    • None
    • Operating System: RHEL 6.4
      PHP Version: 5.3.3
      Database and version: Mysql 5.1.67
      Browser (and version): Firefox 19.0

    Description

      Hi,

      if i define a constance in config.php, i have a php notice when clearing caches using command line.

      For instance:
      I copied "config.php-RECOMMENDED" to "config.php" and defined

      define( 'EZP_APP_FOLDER_NAME', '../ezpublish' );
      

      but, when i run:
      $ php /var/www/apache2php53/ezp50/ezpublish/console ezpublish:legacy:script bin/php/ezcache.php --clear-all

      i have the following PHP notice:

      PHP Notice:  Constant EZP_APP_FOLDER_NAME already defined in /var/www/apache2php53/ezp50/ezpublish_testsystem/.run/config.php on line 4
      
      Notice: Constant EZP_APP_FOLDER_NAME already defined in /var/www/apache2php53/ezp50/ezpublish_testsystem/.run/config.php on line 4
      

      #1 - despite not being a bug, it's 'unclean' to see this notice
      #2 - With the php notice one may think on Which 'EZP_APP_FOLDER_NAME' if being taken in account, the one from config.php or the one from autoload.php

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m