by damncabbage · 15y ago · 0 comments
A lot of PHP projects involve working with existing components or apps. Some of these use the global namespace with very obvious names, eg. phpBB's User, CodeIgniter's Session. Try and combine two components that use the same obvious names, and everything explodes in a giant mess of E_ERROR.
(It's the same deal with globally-scoped constants:
define('ACTIVE',1);
define('ACTIVE','active');
Makes life very interesting.)