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); } }