diff options
Diffstat (limited to 'ext/soap/tests/bugs')
32 files changed, 47 insertions, 47 deletions
diff --git a/ext/soap/tests/bugs/bug28969.phpt b/ext/soap/tests/bugs/bug28969.phpt index dd8c3a162c..56c5538223 100644 --- a/ext/soap/tests/bugs/bug28969.phpt +++ b/ext/soap/tests/bugs/bug28969.phpt @@ -27,9 +27,9 @@ class LocalSoapClient extends SoapClient { } -$x = new LocalSoapClient(NULL,array('location'=>'test://', +$x = new LocalSoapClient(NULL,array('location'=>'test://', 'uri'=>'http://testuri.org', - 'encoding'=>'ISO-8859-1')); + 'encoding'=>'ISO-8859-1')); var_dump($x->test()); echo "ok\n"; ?> diff --git a/ext/soap/tests/bugs/bug29061.phpt b/ext/soap/tests/bugs/bug29061.phpt index a85a7aa1ba..0ded544b94 100644 --- a/ext/soap/tests/bugs/bug29061.phpt +++ b/ext/soap/tests/bugs/bug29061.phpt @@ -6,8 +6,8 @@ Bug #29061 (soap extension segfaults) soap.wsdl_cache_enabled=0 --FILE-- <?php -$client = new SoapClient(dirname(__FILE__)."/bug29061.wsdl", array("exceptions"=>0)); -$client->getQuote("ibm"); +$client = new SoapClient(dirname(__FILE__)."/bug29061.wsdl", array("exceptions"=>0)); +$client->getQuote("ibm"); echo "ok\n"; ?> --EXPECT-- diff --git a/ext/soap/tests/bugs/bug29109.phpt b/ext/soap/tests/bugs/bug29109.phpt index 3b13974d07..f16b4c5851 100644 --- a/ext/soap/tests/bugs/bug29109.phpt +++ b/ext/soap/tests/bugs/bug29109.phpt @@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0 --FILE-- <?php $client = new SoapClient(dirname(__FILE__)."/bug29109.wsdl"); -var_dump($client->__getFunctions()); +var_dump($client->__getFunctions()); ?> --EXPECT-- array(1) { diff --git a/ext/soap/tests/bugs/bug29236.phpt b/ext/soap/tests/bugs/bug29236.phpt index 7b7628d3de..659a8293db 100644 --- a/ext/soap/tests/bugs/bug29236.phpt +++ b/ext/soap/tests/bugs/bug29236.phpt @@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=1 --FILE-- <?php $client = new SoapClient(dirname(__FILE__)."/bug29236.wsdl"); -var_dump($client->__getFunctions()); +var_dump($client->__getFunctions()); ?> --EXPECT-- array(4) { diff --git a/ext/soap/tests/bugs/bug29830.phpt b/ext/soap/tests/bugs/bug29830.phpt index dc090f82cc..adbbd7ffa5 100644 --- a/ext/soap/tests/bugs/bug29830.phpt +++ b/ext/soap/tests/bugs/bug29830.phpt @@ -5,13 +5,13 @@ Bug #29844 (SoapServer::setClass() should not export non-public methods) --FILE-- <?php -class hello_world { +class hello_world { public function hello($to) { return 'Hello ' . $to; - } + } private function bye($to) { return 'Bye ' . $to; - } + } } $server = new SoapServer(NULL, array("uri"=>"test://")); diff --git a/ext/soap/tests/bugs/bug29839.phpt b/ext/soap/tests/bugs/bug29839.phpt index 11d924ec78..8bead388fa 100644 --- a/ext/soap/tests/bugs/bug29839.phpt +++ b/ext/soap/tests/bugs/bug29839.phpt @@ -29,7 +29,7 @@ class LocalSoapClient extends SoapClient { } -$client = new LocalSoapClient(dirname(__FILE__)."/bug29839.wsdl", array("trace"=>1)); +$client = new LocalSoapClient(dirname(__FILE__)."/bug29839.wsdl", array("trace"=>1)); $client->EchoString(array("value"=>"hello","lang"=>"en")); echo $client->__getLastRequest(); echo $client->__getLastResponse(); diff --git a/ext/soap/tests/bugs/bug29844.phpt b/ext/soap/tests/bugs/bug29844.phpt index a3006639b1..26f1151a93 100644 --- a/ext/soap/tests/bugs/bug29844.phpt +++ b/ext/soap/tests/bugs/bug29844.phpt @@ -7,10 +7,10 @@ soap.wsdl_cache_enabled=0 --FILE-- <?php -class hello_world { +class hello_world { public function hello($to) { return 'Hello ' . $to; - } + } } class LocalSoapClient extends SoapClient { @@ -31,7 +31,7 @@ class LocalSoapClient extends SoapClient { } -$client = new LocalSoapClient(dirname(__FILE__)."/bug29844.wsdl", array("trace"=>1)); +$client = new LocalSoapClient(dirname(__FILE__)."/bug29844.wsdl", array("trace"=>1)); var_dump($client->hello('davey')); ?> --EXPECT-- diff --git a/ext/soap/tests/bugs/bug30045.phpt b/ext/soap/tests/bugs/bug30045.phpt index 281f958202..21889c2fd1 100644 --- a/ext/soap/tests/bugs/bug30045.phpt +++ b/ext/soap/tests/bugs/bug30045.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #30045 (Cannot pass big integers (> 2147483647) in SOAP requests) --SKIPIF-- -<?php +<?php if (!extension_loaded('soap')) die('skip soap extension not available'); if (!extension_loaded('simplexml')) die('skip simplexml extension not available'); ?> @@ -42,7 +42,7 @@ $soap = new LocalSoapClient(NULL, array("uri"=>"http://test-uri", "location"=>"t function test($type, $num) { global $soap; try { - printf(" %0.0f\n ", $num); + printf(" %0.0f\n ", $num); $ret = $soap->foo($type, new SoapVar($num, $type)); printf(" %0.0f\n", $ret); } catch (SoapFault $ex) { @@ -127,7 +127,7 @@ test(XSD_LONG, 2147483647); test(XSD_LONG, 2147483648); test(XSD_LONG, 4294967296); test(XSD_LONG, 8589934592); -test(XSD_LONG, 17179869184); +test(XSD_LONG, 17179869184); echo "\nunsignedLong\n"; test(XSD_UNSIGNEDLONG, 2147483647); diff --git a/ext/soap/tests/bugs/bug30106.phpt b/ext/soap/tests/bugs/bug30106.phpt index 2104c6d409..3444812623 100644 --- a/ext/soap/tests/bugs/bug30106.phpt +++ b/ext/soap/tests/bugs/bug30106.phpt @@ -16,7 +16,7 @@ class LocalSoapClient extends SoapClient { function __construct($wsdl, $options=array()) { parent::__construct($wsdl, $options); $this->server = new SoapServer($wsdl, $options); - $this->server->addFunction("getContinentList"); + $this->server->addFunction("getContinentList"); } function __doRequest($request, $location, $action, $version, $one_way = 0) { diff --git a/ext/soap/tests/bugs/bug30799.phpt b/ext/soap/tests/bugs/bug30799.phpt index fe7c8ca731..92fd40f452 100644 --- a/ext/soap/tests/bugs/bug30799.phpt +++ b/ext/soap/tests/bugs/bug30799.phpt @@ -8,7 +8,7 @@ class foo { public $a="a"; private $b="b"; protected $c="c"; - + } $x = new SoapClient(NULL,array("location"=>"test://", diff --git a/ext/soap/tests/bugs/bug30928.phpt b/ext/soap/tests/bugs/bug30928.phpt index 0f473b359e..e1fe17a359 100644 --- a/ext/soap/tests/bugs/bug30928.phpt +++ b/ext/soap/tests/bugs/bug30928.phpt @@ -33,11 +33,11 @@ class LocalSoapClient extends SoapClient { } } -$x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl", +$x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl", array()); var_dump($x->test(new foo())); -$x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl", +$x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl", array("classmap" => array('testType'=>'foo'))); var_dump($x->test(new foo())); diff --git a/ext/soap/tests/bugs/bug31695.phpt b/ext/soap/tests/bugs/bug31695.phpt index 9def103726..6d3fae0d25 100644 --- a/ext/soap/tests/bugs/bug31695.phpt +++ b/ext/soap/tests/bugs/bug31695.phpt @@ -14,7 +14,7 @@ class LocalSoapClient extends SoapClient { function __construct($wsdl, $options=array()) { parent::__construct($wsdl, $options); $this->server = new SoapServer($wsdl, $options); - $this->server->addFunction("Test"); + $this->server->addFunction("Test"); } function __doRequest($request, $location, $action, $version, $one_way = 0) { @@ -31,7 +31,7 @@ $client = new LocalSoapClient(dirname(__FILE__)."/bug31695.wsdl"); $client->Test("str"); $client = new LocalSoapClient(dirname(__FILE__)."/bug31695.wsdl", array("location"=>"test://1")); $client->Test("str"); -$client->__soapCall("Test", +$client->__soapCall("Test", array("arg1"), array("location"=>"test://2")); $old = $client->__setLocation("test://3"); diff --git a/ext/soap/tests/bugs/bug32776.phpt b/ext/soap/tests/bugs/bug32776.phpt index 6dc94661ae..ae863bd339 100644 --- a/ext/soap/tests/bugs/bug32776.phpt +++ b/ext/soap/tests/bugs/bug32776.phpt @@ -32,7 +32,7 @@ class LocalSoapClient extends SoapClient { } -$x = new LocalSoapClient(dirname(__FILE__)."/bug32776.wsdl",array("trace"=>true,"exceptions"=>false)); +$x = new LocalSoapClient(dirname(__FILE__)."/bug32776.wsdl",array("trace"=>true,"exceptions"=>false)); var_dump($x->test("Hello")); var_dump($d); var_dump($x->__getLastRequest()); diff --git a/ext/soap/tests/bugs/bug34453.phpt b/ext/soap/tests/bugs/bug34453.phpt index 0f9543b715..0a9dd80179 100644 --- a/ext/soap/tests/bugs/bug34453.phpt +++ b/ext/soap/tests/bugs/bug34453.phpt @@ -29,7 +29,7 @@ class LocalSoapClient extends SoapClient { } -$client = new LocalSoapClient(dirname(__FILE__)."/bug34453.wsdl", array("trace"=>1)); +$client = new LocalSoapClient(dirname(__FILE__)."/bug34453.wsdl", array("trace"=>1)); $client->EchoString(array("value"=>"hello","lang"=>"en")); echo $client->__getLastRequest(); echo $client->__getLastResponse(); diff --git a/ext/soap/tests/bugs/bug35142.phpt b/ext/soap/tests/bugs/bug35142.phpt index 94c1aa954b..2e523030a9 100644 --- a/ext/soap/tests/bugs/bug35142.phpt +++ b/ext/soap/tests/bugs/bug35142.phpt @@ -32,7 +32,7 @@ class TestSoapClient extends SoapClient { } -$soapClient = new TestSoapClient($wsdl, +$soapClient = new TestSoapClient($wsdl, array('trace' => 1, 'exceptions' => 0, 'classmap' => array('logOnEvent' => 'LogOnEvent', 'logOffEvent' => 'LogOffEvent', diff --git a/ext/soap/tests/bugs/bug36226.phpt b/ext/soap/tests/bugs/bug36226.phpt index 8c01c5b5d3..1e398c0c2c 100644 --- a/ext/soap/tests/bugs/bug36226.phpt +++ b/ext/soap/tests/bugs/bug36226.phpt @@ -32,7 +32,7 @@ class TestSoapClient extends SoapClient { } -$soapClient = new TestSoapClient($wsdl, +$soapClient = new TestSoapClient($wsdl, array('trace' => 1, 'exceptions' => 0, 'classmap' => array('logOnEvent' => 'LogOnEvent', 'logOffEvent' => 'LogOffEvent', diff --git a/ext/soap/tests/bugs/bug36908.phpt b/ext/soap/tests/bugs/bug36908.phpt index cd0ea8b2e5..2d2a46410c 100644 --- a/ext/soap/tests/bugs/bug36908.phpt +++ b/ext/soap/tests/bugs/bug36908.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #36908 (wsdl default value overrides value in soap request) --SKIPIF-- -<?php +<?php if (!extension_loaded('soap')) die('skip soap extension not available'); ?> --INI-- diff --git a/ext/soap/tests/bugs/bug36999.phpt b/ext/soap/tests/bugs/bug36999.phpt index 9fbb032d8f..eed02ecf0b 100644 --- a/ext/soap/tests/bugs/bug36999.phpt +++ b/ext/soap/tests/bugs/bug36999.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #36999 (xsd:long values clamped to LONG_MAX instead of using double) --SKIPIF-- -<?php +<?php if (!extension_loaded('soap')) die('skip soap extension not available'); ?> --INI-- diff --git a/ext/soap/tests/bugs/bug37013.phpt b/ext/soap/tests/bugs/bug37013.phpt index 45f314293b..7c0546ba2d 100644 --- a/ext/soap/tests/bugs/bug37013.phpt +++ b/ext/soap/tests/bugs/bug37013.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #37013 (server hangs when returning circular object references) --SKIPIF-- -<?php +<?php if (!extension_loaded('soap')) die('skip soap extension not available'); ?> --INI-- diff --git a/ext/soap/tests/bugs/bug38005.phpt b/ext/soap/tests/bugs/bug38005.phpt index 219696c263..6557867277 100644 --- a/ext/soap/tests/bugs/bug38005.phpt +++ b/ext/soap/tests/bugs/bug38005.phpt @@ -31,7 +31,7 @@ $client = new TestSoapClient(NULL, array( 'uri' => "test://", 'location' => "test://", 'soap_version'=>SOAP_1_2, - 'trace'=>1, + 'trace'=>1, 'exceptions'=>0)); $res = $client->Test(); echo($res->faultstring."\n"); diff --git a/ext/soap/tests/bugs/bug39815.phpt b/ext/soap/tests/bugs/bug39815.phpt index 847c37161b..57b429ec43 100644 --- a/ext/soap/tests/bugs/bug39815.phpt +++ b/ext/soap/tests/bugs/bug39815.phpt @@ -1,8 +1,8 @@ --TEST-- Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independent) --SKIPIF-- -<?php -require_once('skipif.inc'); +<?php +require_once('skipif.inc'); if (!@setlocale(LC_ALL, 'sv_SE', 'sv_SE.ISO8859-1')) die('skip sv_SE locale not available'); if (!@setlocale(LC_ALL, 'en_US', 'en_US.ISO8859-1')) die('skip en_US locale not available'); ?> @@ -31,9 +31,9 @@ class LocalSoapClient extends SoapClient { } } -$x = new LocalSoapClient(NULL,array('location'=>'test://', +$x = new LocalSoapClient(NULL,array('location'=>'test://', 'uri'=>'http://testuri.org', - "trace"=>1)); + "trace"=>1)); setlocale(LC_ALL,"sv_SE","sv_SE.ISO8859-1"); var_dump($x->test()); echo $x->__getLastResponse(); diff --git a/ext/soap/tests/bugs/bug41004.phpt b/ext/soap/tests/bugs/bug41004.phpt index 992c6b708d..87ab88598e 100644 --- a/ext/soap/tests/bugs/bug41004.phpt +++ b/ext/soap/tests/bugs/bug41004.phpt @@ -9,7 +9,7 @@ ini_set('soap.wsdl_cache_enabled', false); class EchoBean{ public $mandatoryElement; public $optionalElement; - + } class EchoRequest{ diff --git a/ext/soap/tests/bugs/bug42086.phpt b/ext/soap/tests/bugs/bug42086.phpt index 6edc06f879..35e5ef0e07 100644 --- a/ext/soap/tests/bugs/bug42086.phpt +++ b/ext/soap/tests/bugs/bug42086.phpt @@ -20,7 +20,7 @@ function firstFunctionWithoutParam() { $ret->param = "firstFunctionWithoutParam"; return $ret; } - + $server = new SoapServer(dirname(__FILE__).'/bug42086.wsdl', array('features'=>SOAP_SINGLE_ELEMENT_ARRAYS)); $server->addFunction('firstFunctionWithoutParam'); diff --git a/ext/soap/tests/bugs/bug42183.phpt b/ext/soap/tests/bugs/bug42183.phpt index d34311f26c..043487c964 100644 --- a/ext/soap/tests/bugs/bug42183.phpt +++ b/ext/soap/tests/bugs/bug42183.phpt @@ -16,7 +16,7 @@ function test() { return new PHPObject(); } -$server = new SoapServer(NULL, array('uri' => 'http://ws.sit.com', +$server = new SoapServer(NULL, array('uri' => 'http://ws.sit.com', 'classmap' => array('Object' => 'PHPObject'))); $server->addFunction("test"); ob_start(); diff --git a/ext/soap/tests/bugs/bug42326.phpt b/ext/soap/tests/bugs/bug42326.phpt index 2e6c7c3501..a1d8d59fc0 100644 --- a/ext/soap/tests/bugs/bug42326.phpt +++ b/ext/soap/tests/bugs/bug42326.phpt @@ -28,7 +28,7 @@ class SOAP_GetProductsResponse { public $products; function __construct(){ $this->products = new SOAP_productDetailsType(); - + } } diff --git a/ext/soap/tests/bugs/bug43045.phpt b/ext/soap/tests/bugs/bug43045.phpt index a32acfe0ea..f4f3983800 100644 --- a/ext/soap/tests/bugs/bug43045.phpt +++ b/ext/soap/tests/bugs/bug43045.phpt @@ -39,7 +39,7 @@ $client = new TestSoapClient(NULL, array( "location" => "test://", "uri" => 'urn:TestSOAP', "style" => SOAP_RPC, - "use" => SOAP_ENCODED + "use" => SOAP_ENCODED )); var_dump($client->test(0.1)); var_dump($client->test(NAN)); diff --git a/ext/soap/tests/bugs/bug46419.phpt b/ext/soap/tests/bugs/bug46419.phpt index cb113e28d2..d5f9751ed5 100644 --- a/ext/soap/tests/bugs/bug46419.phpt +++ b/ext/soap/tests/bugs/bug46419.phpt @@ -26,8 +26,8 @@ class LocalSoapClient extends SoapClient { } -$x = new LocalSoapClient(NULL,array('location'=>'test://', - 'uri'=>'http://testuri.org')); +$x = new LocalSoapClient(NULL,array('location'=>'test://', + 'uri'=>'http://testuri.org')); var_dump($x->bar()); ?> --EXPECT-- diff --git a/ext/soap/tests/bugs/bug47273.phpt b/ext/soap/tests/bugs/bug47273.phpt index 1cfb0f3cd9..85abf432da 100644 --- a/ext/soap/tests/bugs/bug47273.phpt +++ b/ext/soap/tests/bugs/bug47273.phpt @@ -19,7 +19,7 @@ class SoapFaultTest // Test #1 return 'Test #1 exception with some special chars: Äßö'; } - public function test2() { + public function test2() { // Test #2 //throw new SoapFault('Server', 'Test #2 exception with some special chars: Äßö'); throw new Exception('Test #2 exception with some special chars: Äßö'); diff --git a/ext/soap/tests/bugs/bug50698_2.phpt b/ext/soap/tests/bugs/bug50698_2.phpt index 7ff667423c..79bbb3bd80 100644 --- a/ext/soap/tests/bugs/bug50698_2.phpt +++ b/ext/soap/tests/bugs/bug50698_2.phpt @@ -15,7 +15,7 @@ try { } else { echo "Call: \"new SoapClient(dirname(__FILE__).'/bug50698_2.wsdl');\" threw a SoapFault with an incorrect faultcode or faultmessage."; print_r($e); - } + } } ?> --EXPECT-- diff --git a/ext/soap/tests/bugs/bug50698_3.phpt b/ext/soap/tests/bugs/bug50698_3.phpt index 6cee6a67ec..341a4afb97 100644 --- a/ext/soap/tests/bugs/bug50698_3.phpt +++ b/ext/soap/tests/bugs/bug50698_3.phpt @@ -15,7 +15,7 @@ try { } else { echo "Call: \"new SoapClient(dirname(__FILE__).'/bug50698_3.wsdl');\" threw a SoapFault with an incorrect faultcode or faultmessage."; print_r($e); - } + } } ?> --EXPECT-- diff --git a/ext/soap/tests/bugs/bug54911.phpt b/ext/soap/tests/bugs/bug54911.phpt index 6913925f8a..1cc4faf959 100644 --- a/ext/soap/tests/bugs/bug54911.phpt +++ b/ext/soap/tests/bugs/bug54911.phpt @@ -7,8 +7,8 @@ Bug #54911 (Access to a undefined member in inherit SoapClient may cause Segment class XSoapClient extends SoapClient { function __doRequest($request, $location, $action, $version, $one_way=false) { echo self::$crash; - } - } + } + } $client = new XSoapClient(null, array('uri'=>'', 'location'=>'')); $client->__soapCall('', array()); ?> diff --git a/ext/soap/tests/bugs/multiport.phpt b/ext/soap/tests/bugs/multiport.phpt index 0b5e944514..90799cf492 100644 --- a/ext/soap/tests/bugs/multiport.phpt +++ b/ext/soap/tests/bugs/multiport.phpt @@ -6,7 +6,7 @@ Proper binding selection soap.wsdl_cache_enabled=0 --FILE-- <?php -$client = new SoapClient(dirname(__FILE__).'/multiport.wsdl', +$client = new SoapClient(dirname(__FILE__).'/multiport.wsdl', array('trace' => true, 'exceptions' => false)); $response = $client->GetSessionId(array('userId'=>'user', 'password'=>'password')); echo $client->__getLastRequest(); |