소스 검색

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