define constant only if it wasn't defined before

This commit is contained in:
Christian Flothmann 2014-11-29 13:36:20 +01:00
parent efbf588ed0
commit 388229b55c

View File

@ -11,10 +11,12 @@
namespace Symfony\Component\ClassLoader; namespace Symfony\Component\ClassLoader;
if (PHP_VERSION_ID >= 50400) { if (!defined('SYMFONY_TRAIT')) {
define('SYMFONY_TRAIT', T_TRAIT); if (PHP_VERSION_ID >= 50400) {
} else { define('SYMFONY_TRAIT', T_TRAIT);
define('SYMFONY_TRAIT', 0); } else {
define('SYMFONY_TRAIT', 0);
}
} }
/** /**