blob: 0c1a604f2e8316bd435cd1fd9b04f0e6b59ba7c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
--TEST--
Bug #77088 (Segfault when using SoapClient with null options)
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
try
{
$options = NULL;
$sClient = new SoapClient("test.wsdl", $options);
}
catch(SoapFault $e)
{
var_dump($e);
}
?>
--EXPECTF--
Warning: SoapClient::SoapClient() expects parameter 2 to be array, null given in %sbug77088.php on line %d
object(SoapFault)#%d (%d) {
["message":protected]=>
string(44) "SoapClient::SoapClient(): Invalid parameters"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(%d) "%sbug77088.php"
["line":protected]=>
int(6)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(%d) "%sbug77088.php"
["line"]=>
int(6)
["function"]=>
string(10) "SoapClient"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(9) "test.wsdl"
[1]=>
NULL
}
}
}
["previous":"Exception":private]=>
NULL
["faultstring"]=>
string(44) "SoapClient::SoapClient(): Invalid parameters"
["faultcode"]=>
string(6) "Client"
["faultcodens"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
}
|