Zurab Davitiani wrote:
Maybe because the class is not completely loaded at that point.
Indeed, because it is an interpreted language, PHP wouldn't create a
scope for the class until AFTER the class has bee interpreted. Remember
that rule about only being able to reference stuff AFTER it's declared?
well, you can only reference the class AFTER it's been declared, which
means the constant too, as it is part of the class.