changed echos back to trigger_error

This commit is contained in:
Ben Connito 2014-09-14 11:59:46 -04:00
parent 417017b667
commit a6e7952671

View File

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