No you didn't end up with a fatal error. If the constant does not exists, it will interpreted as string and a notice is shown. But i agree, its better to avoid this notice and throw a exception.