Welcome Guest, Not a member yet? Register   Sign In
Order of loading config and constants

If I had to guess (and I do) the order is probably done that way because the defines in config/constants.php should NOT be changed. For the most part those constants correlate directly to values expected by PHP functions. Changing those values could have very bad consequences.

That said, I did a search through the core files for usage of config/constants.php constants. While I didn't search for all of them, the ones I did look for are for the most part not used anywhere. The one that is used (SHOW_DEBUG_BACKTRACE) is found in some error views. However, any of them might be used by a third-party package that relies on the defined values.

That they are mostly unused by the core suggests they exist for the convenience of developers. Or, maybe they are the vestigial remains from earlier versions?

Messages In This Thread
RE: Order of loading config and constants - by dave friend - 01-25-2018, 08:38 AM

Theme © iAndrew 2016 - Forum software by © MyBB