Throw exception instead of trigger_error()