pinguo / php-msf

PHP微服务框架即Micro Service Framework For PHP
GNU General Public License v2.0
1.75k stars 317 forks source link

当httpEnable为false时,使用没有实例化的server #122

Closed pinguo-zhanglu closed 6 years ago

pinguo-zhanglu commented 6 years ago

https://github.com/pinguo/php-msf/blob/716a097b9f562dfbee9889277cf26e09c4d4d5a2/src/HttpServer.php#L101

httpEnable为false时,调用父类Server::start()Server没有实现start成员函数,只能调用魔术方法__call

    public function __call($name, $arguments)
    {
        return $this->server->$name(...$arguments);
    }

但是,$this->server还没有实例化。