blob: e6f5e7582ead9d9b0ac86633fa9fb44d35dff68d (
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
|
--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(TypeError $e)
{
var_dump($e);
}
?>
--EXPECTF--
object(TypeError)#%d (%d) {
["message":protected]=>
string(%d) "SoapClient::__construct() expects parameter 2 to be array, null given"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(%d) "%sbug77088.php"
["line":protected]=>
int(6)
["trace":"Error":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(%d) "%sbug77088.php"
["line"]=>
int(6)
["function"]=>
string(11) "__construct"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(9) "test.wsdl"
[1]=>
NULL
}
}
}
["previous":"Error":private]=>
NULL
}
|