We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tars文件: module TestApp{ interface SayHello{ int echoHello(string name, out string greeting); }; }; php代码: // 指定主控ip $config = new \Tars\client\CommunicatorConfig(); $config->setLocator('tars.tarsregistry.QueryObj@tcp -h 10.0.2.15 -p 17890'); $config->setModuleName('App.Server'); $config->setCharsetName('UTF-8'); $servant = new \TestApp\HelloGo\SayHelloObj\SayHelloServant($config);
echo "Locator specified with default socketmode 1\n"; $name = 'ted'; $intVal = $servant->echoHello($name, $greetings); var_dump($greetings);
The text was updated successfully, but these errors were encountered:
@sandyskies
Sorry, something went wrong.
The problem is caused by php ,which use iversion 2 in request package
use $config->setIVersion(1); to set the iverson to 1
No branches or pull requests
tars文件:
module TestApp{
interface SayHello{
int echoHello(string name, out string greeting);
};
};
php代码:
// 指定主控ip
$config = new \Tars\client\CommunicatorConfig();
$config->setLocator('tars.tarsregistry.QueryObj@tcp -h 10.0.2.15 -p 17890');
$config->setModuleName('App.Server');
$config->setCharsetName('UTF-8');
$servant = new \TestApp\HelloGo\SayHelloObj\SayHelloServant($config);
echo "Locator specified with default socketmode 1\n";
$name = 'ted';
$intVal = $servant->echoHello($name, $greetings);
var_dump($greetings);
The text was updated successfully, but these errors were encountered: