From a3e0cafb325742eaf39eab0e733a6a5e591b1f31 Mon Sep 17 00:00:00 2001 From: Anton Grebnev Date: Thu, 24 Nov 2011 19:22:49 +0400 Subject: [PATCH] replaced \r\n with PHP_EOL in CliLogger --- logger/CliLogger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/CliLogger.php b/logger/CliLogger.php index 121cda1..cfc8e5e 100644 --- a/logger/CliLogger.php +++ b/logger/CliLogger.php @@ -13,7 +13,7 @@ class CliLogger extends Logger protected function concreteLog($message) { // Заменяем окончания строк на их символы - $message = str_replace(array("\r", "\n"), array('\r', '\n'), $message); + $message = str_replace(array("\r\n"), array(PHP_EOL), $message); $out = microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL; print($out); }