Explorar o código

set error handler

walkor %!s(int64=7) %!d(string=hai) anos
pai
achega
b4b166061e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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();