From 5c644552b2be90ab8a06a517adc0f3b82ce55223 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 8 Apr 2012 20:05:24 +0200 Subject: [PATCH] Warn users about having scream enabled, fixes #543 --- src/Composer/Util/ErrorHandler.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Util/ErrorHandler.php b/src/Composer/Util/ErrorHandler.php index 708d2976f..d179e2cc9 100644 --- a/src/Composer/Util/ErrorHandler.php +++ b/src/Composer/Util/ErrorHandler.php @@ -37,6 +37,11 @@ class ErrorHandler return; } + if (ini_get('xdebug.scream')) { + $message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be". + "\na legitimately suppressed error that you were not supposed to see."; + } + throw new \ErrorException($message, 0, $level, $file, $line); }