/hphp/test/zend/good/ext/soap/tests/bugs/bug38004.php
http://github.com/facebook/hiphop-php · PHP · 39 lines · 34 code · 5 blank · 0 comment · 0 complexity · 312fcacc4e5c986643096a5c9e816359 MD5 · raw file
- <?hh
- function Test($param) {
- ZendGoodExtSoapTestsBugsBug38004::$g = $param->strA."\n".$param->strB."\n";
- return ZendGoodExtSoapTestsBugsBug38004::$g;
- }
- class TestSoapClient extends SoapClient {
- function __construct($wsdl) {
- parent::__construct($wsdl);
- $this->server = new SoapServer($wsdl);
- $this->server->addFunction('Test');
- }
- function __doRequest($request, $location, $action, $version, $one_way = 0) {
- ob_start();
- $this->server->handle($request);
- $response = ob_get_contents();
- ob_end_clean();
- return $response;
- }
- }
- abstract final class ZendGoodExtSoapTestsBugsBug38004 {
- public static $g;
- }
- <<__EntryPoint>>
- function main_entry(): void {
- $client = new TestSoapClient(dirname(__FILE__).'/bug38004.wsdl');
- $strA = 'test & test';
- $strB = 'test & test';
- $res = $client->__soapcall(
- 'Test',
- varray[darray['strA'=>$strA, 'strB'=>$strB]],
- );
- print_r($res);
- print_r(ZendGoodExtSoapTestsBugsBug38004::$g);
- }