Skip to content
Snippets Groups Projects
Commit 5e1c30b5 authored by catch's avatar catch
Browse files

Issue #3478417 by longwave, cmlara: Error handler crashes with Undefined...

Issue #3478417 by longwave, cmlara: Error handler crashes with Undefined constant "DRUPAL_TEST_IN_CHILD_SITE"
parent 48b0aea1
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line) { ...@@ -83,7 +83,7 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line) {
} }
// If the site is a test site then fail for user deprecations so they can be // If the site is a test site then fail for user deprecations so they can be
// caught by the deprecation error handler. // caught by the deprecation error handler.
elseif (DRUPAL_TEST_IN_CHILD_SITE && $error_level === E_USER_DEPRECATED) { elseif (defined('DRUPAL_TEST_IN_CHILD_SITE') && DRUPAL_TEST_IN_CHILD_SITE && $error_level === E_USER_DEPRECATED) {
static $seen = []; static $seen = [];
if (array_search($message, $seen, TRUE) === FALSE) { if (array_search($message, $seen, TRUE) === FALSE) {
// Only report each deprecation once. Too many headers can break some // Only report each deprecation once. Too many headers can break some
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment