• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_shutdown_handler() getting called

#1
I am having a problem where _shutdown_handler() in common.php is getting called whenever I start up my program under xdebug. I need to know why? There is a call to error_get_last() at the top of it, but the $last_error is null. 

function _shutdown_handler()
{
   $last_error = error_get_last();
   if (isset($last_error) &&
       ($last_error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING)))
   {
       _error_handler($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']);
   }


My current theory is that the reason is that some index (such as in $_POST) is not being initialized, but I can't point to a really good reason. I figure that shutdown_handler is a callback that is being triggered by some event, but what? How can I figure out why shutdown_handler is being called?

thx for your help. 
proof that an old dog can learn new tricks
Reply


Messages In This Thread
_shutdown_handler() getting called - by richb201 - 11-18-2017, 06:34 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.