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