when hooking to pre_user_query my wordpress crashes when using very simple commands?

when hooking to pre_user_query my wordpress crashes when using very simple commands?