]> granicus.if.org Git - php/commitdiff
- New test
authorFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 22:19:23 +0000 (22:19 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 22:19:23 +0000 (22:19 +0000)
ext/soap/tests/bug46760.phpt [new file with mode: 0644]

diff --git a/ext/soap/tests/bug46760.phpt b/ext/soap/tests/bug46760.phpt
new file mode 100644 (file)
index 0000000..0b7c9ab
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+Bug #46760 (SoapClient doRequest fails when proxy is used)
+--FILE--
+<?php
+
+$client = new SoapClient(null, array('proxy_host'     => "localhost",
+                                            'proxy_port'     => '8080',
+                                            'login'    => "user",
+                                                                               'password' => "test",
+                                                                                       'uri'            => 'mo:http://www.w3.org/',
+                                                                                       'location'       => 'http://some.url'));
+var_dump($client->_proxy_port);
+
+?>
+--EXPECT--
+int(8080)