From a6e7952671b5287f2478309f839b37656b8aff9c Mon Sep 17 00:00:00 2001 From: Ben Connito Date: Sun, 14 Sep 2014 11:59:46 -0400 Subject: [PATCH] changed echos back to trigger_error --- src/Ratchet/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index 484129a..4755560 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -62,7 +62,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!" . PHP_EOL); + trigger_error('XDebug extension detected. Remember to disable this if performance testing or going live!', E_USER_WARNING); } if (3 !== strlen('✓')) { @@ -102,7 +102,7 @@ class App { $flashSock->listen(843, '0.0.0.0'); }else{ fclose($test); - echo('flash socket server already running on 843' . PHP_EOL); + trigger_error('flash socket server already running on 843', E_USER_NOTICE); } }