Bläddra i källkod

acceptTCP->acceptTcp

walkor 11 år sedan
förälder
incheckning
342474193e
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      applications/ChatDemo/Bootstrap/Gateway.php
  2. 1 1
      workerman/bin/workermand

+ 1 - 1
applications/ChatDemo/Bootstrap/Gateway.php

@@ -115,7 +115,7 @@ class Gateway extends Man\Core\SocketWorker
         
         // 添加读udp事件
         $this->event->add($this->innerMainSocketUdp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'recvUdp'));
-        $this->event->add($this->innerMainSocketTcp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'acceptTCP'));
+        $this->event->add($this->innerMainSocketTcp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'acceptTcp'));
         
         // 初始化到worker的通信地址
         $this->initWorkerAddresses();

+ 1 - 1
workerman/bin/workermand

@@ -22,7 +22,7 @@ if(0 === strpos(strtolower(PHP_OS), 'win'))
     exit("Workerman can not run on Windows operating system\n");
 }
 
-if (!version_compare(PHP_VERSION, '5.3.0', '>='))
+if (version_compare(PHP_VERSION,'5.3.0','<'))
 {
     exit("Workerman PHP >= 5.3.0 required \n");
 }