Pass context parameter to old error handler

I wanted log php errors in conjunction with default error handler. But I failed because this one doesn't pass all required parameters to old error handler.