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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1.0beta1
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              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