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