commit e4b245fa4334f6a3858d310b6612a80578c0ffdb
Author: Pierre Rineau <pierre.rineau@makina-corpus.com>
Date:   Tue Feb 27 10:38:44 2018 +0100

    Issue #2947291 by pounard: Missing argument 5 for _drupal_error_handler()

diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index f789712cb7..c1ffb08561 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2586,7 +2586,7 @@ function drupal_get_hash_salt() {
  *   An array that points to the active symbol table at the point the error
  *   occurred.
  */
-function _drupal_error_handler($error_level, $message, $filename, $line, $context) {
+function _drupal_error_handler($error_level, $message, $filename = NULL, $line = NULL, $context = NULL) {
   require_once DRUPAL_ROOT . '/includes/errors.inc';
   _drupal_error_handler_real($error_level, $message, $filename, $line, $context);
 }
diff --git a/includes/errors.inc b/includes/errors.inc
index 3548d1fd82..b9e605e4d9 100644
--- a/includes/errors.inc
+++ b/includes/errors.inc
@@ -52,7 +52,7 @@ function drupal_error_levels() {
  *   An array that points to the active symbol table at the point the error
  *   occurred.
  */
-function _drupal_error_handler_real($error_level, $message, $filename, $line, $context) {
+function _drupal_error_handler_real($error_level, $message, $filename = NULL, $line = NULL, $context = NULL) {
   if ($error_level & error_reporting()) {
     $types = drupal_error_levels();
     list($severity_msg, $severity_level) = $types[$error_level];
