xref: /php-src/ext/soap/tests/bugs/bug46427.phpt (revision 7f2f0c00)
1--TEST--
2Bug #46427 (SoapClient() stumbles over its "stream_context" parameter)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8function getSoapClient_1() {
9    $ctx = stream_context_create();
10    return new SoapClient(NULL, array(
11        'stream_context' => $ctx,
12        'location' => 'test://',
13        'uri' => 'test://',
14        'exceptions' => false));
15}
16
17getSoapClient_1()->__soapCall('Help', array());
18echo "ok\n";
19?>
20--EXPECT--
21ok
22