I saw this example from php.net:
Instead of
$c = get_class( $this ); echo $c::MY_CONST;
Do this
$c = get_class( $this ); echo constant($c . '::MY_CONST');