Sfoglia il codice sorgente

Change way of checking for windows

Jordi Boggiano 14 anni fa
parent
commit
b1a6830a8c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Monolog/Handler/SyslogHandler.php

+ 1 - 1
src/Monolog/Handler/SyslogHandler.php

@@ -68,7 +68,7 @@ class SyslogHandler extends AbstractProcessingHandler
     {
     {
         parent::__construct($level, $bubble);
         parent::__construct($level, $bubble);
 
 
-        if (false === strpos(PHP_OS, 'WIN')) {
+        if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
             $this->facilities['local0'] = LOG_LOCAL0;
             $this->facilities['local0'] = LOG_LOCAL0;
             $this->facilities['local1'] = LOG_LOCAL1;
             $this->facilities['local1'] = LOG_LOCAL1;
             $this->facilities['local2'] = LOG_LOCAL2;
             $this->facilities['local2'] = LOG_LOCAL2;