rpc_server.php
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 3 and the first side effect is on line 4.<?php define('__ROOT__', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);require_once __ROOT__.'core/Group/Plugin/Rpc/Hprose.php';require_once __ROOT__.'core/Group/RpcKernal.php'; new \Group\Plugin\Rpc\Hprose();$kernal = new RpcKernal('tcp');$kernal->init();