Handy tip:
If you'r bodded down in old legacy PHP code and you need to know what constants are defined at any point during execution, simply call:
get_defined_constants(true)
You can either add this to Zend Debugger as an expression or error_log with print_r it.