Your are right, these problems occurs when reversing CONST (in uppercase) rather than const (lowercase), I supposed Php case sensitive, but looking more may be sometimes Php is case sensitive, sometimes not

That's a pity, how is it possible for a language to adopt this kind of inconsistent and incredibly stupid rules ?