[20:11:12] duesen: I think "normal" and "pass USER_ERROR" are contrary points. I believe trigger error is mainly used to create logged notices and warnings in an easy and standalone manner. If something should exit the process there is exit; or one can throw an exception normally and let it bubble/fatal accordingly. [20:13:12] We very rarely use it to terminate the process, afaik it's mostly done by mistake/misunderstanding (including me once, not realising that severity error behaves different than warning, beyond merely message prefix in logstash), or in cases where an exception isn't allowed such as in __toString() during shutdown etc and you still want to short circuit with logging [20:13:17] But that's pretty rare [20:14:00] If I recall correctly I created a task asking for a sniff against such (usually) accidental use of trigger error with that constant [20:14:17] Curious what you'd think about that :) [20:20:36] I agree that trigger_error with E_USER_ERROR seems pretty useless. Throwing an exception makes more sense. I think it only exists because PHP didn't use to have exceptions. [20:51:54] right