Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.1.0beta1
-
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