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