global statement removal: hphp/test/zend [2/x]
[hiphop-php.git] / hphp / test / zend / good / ext / soap / tests / bugs / bug38055.php
blobdaf95de06039f1ed50dc02b6df837443f057b840
1 <?php
2 function Test($param) {
4 ZendGoodExtSoapTestsBugsBug38055::$g1 = $param->boolA;
5 ZendGoodExtSoapTestsBugsBug38055::$g2 = $param->boolB;
6 return 1;
9 class TestSoapClient extends SoapClient {
10 function __construct($wsdl) {
11 parent::__construct($wsdl);
12 $this->server = new SoapServer($wsdl);
13 $this->server->addFunction('Test');
16 function __doRequest($request, $location, $action, $version, $one_way = 0) {
17 ob_start();
18 $this->server->handle($request);
19 $response = ob_get_contents();
20 ob_end_clean();
21 return $response;
25 $client = new TestSoapClient(dirname(__FILE__).'/bug38055.wsdl');
26 $boolA = 1;
27 $boolB = '1';
28 $res = $client->Test(array('boolA'=>$boolA, 'boolB'=>$boolB));
29 var_dump(ZendGoodExtSoapTestsBugsBug38055::$g1);
30 var_dump(ZendGoodExtSoapTestsBugsBug38055::$g2);
32 abstract final class ZendGoodExtSoapTestsBugsBug38055 {
33 public static $g1;
34 public static $g2;