Sfoglia il codice sorgente

set $errno $errmsg default value

walkor 10 anni fa
parent
commit
6ff5bbc6df
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Worker.php

+ 2 - 0
Worker.php

@@ -1196,6 +1196,8 @@ class Worker
         
         // flag
         $flags =  $this->transport === 'udp' ? STREAM_SERVER_BIND : STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
+        $errno = 0;
+        $errmsg = '';
         $this->_mainSocket = stream_socket_server($this->transport.":".$address, $errno, $errmsg, $flags, $this->_context);
         if(!$this->_mainSocket)
         {