ソースを参照

set error handler

walkor 7 年 前
コミット
b4b166061e
1 ファイル変更4 行追加1 行削除
  1. 4 1
      Events/Select.php

+ 4 - 1
Events/Select.php

@@ -268,7 +268,10 @@ class Select implements EventInterface
             $except = $this->_exceptFds;
 
             // Waiting read/write/signal/timeout events.
-            $ret = @stream_select($read, $write, $except, 0, $this->_selectTimeout);
+            set_error_handler(function(){});
+            $ret = stream_select($read, $write, $except, 0, $this->_selectTimeout);
+            restore_error_handler();
+
 
             if (!$this->_scheduler->isEmpty()) {
                 $this->tick();