title: Overloading PHP die() function
body: <p>I need to overload the die() function. For example, I want to pass an extra parameter to die() function which is when set to true, it sends an email to me that something abnormal happened to the site.
  Can you please help me out!!!</p>
  
  <p>Thanks to all...</p>