xref: /PHP-8.1/ext/soap/tests/bug46760.phpt (revision 6b05d958)
1--TEST--
2Bug #46760 (SoapClient doRequest fails when proxy is used)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8$client = new SoapClient(null, array('proxy_host'     => "localhost",
9                                            'proxy_port'     => '8080',
10                                            'login'    => "user",
11                                            'password' => "test",
12                                            'uri'            => 'mo:http://www.w3.org/',
13                                            'location'       => 'http://some.url'));
14var_dump($client);
15
16?>
17--EXPECTF--
18%A
19  ["_proxy_port":"SoapClient":private]=>
20  int(8080)
21%A
22