From bf61fdbed4feed9f0fdb5cbd251302149aab157e Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Wed, 29 Jan 2014 06:55:07 -0500 Subject: [PATCH] [App] Use trigger_error instead of echo --- src/Ratchet/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index 5cb4ae7..0b151b0 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -56,7 +56,7 @@ class App { */ public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) { if (extension_loaded('xdebug')) { - echo "XDebug extension detected. Remember to disable this if performance testing or going live!\n"; + trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING); } if (null === $loop) {