1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/soap/tests/bug77088.phpt
Max Semenik 7f2f0c007c Migrate skip checks to --EXTENSIONS--, p4
For rationale, see #6787

Extensions migrated in part 4:
* simplexml
* skeleton
* soap
* spl
* sqlite3
* sysvmsg
* sysvsem
* tidy - also removed a check for an ancient dependency version
2021-04-08 10:36:44 +02:00

57 lines
1016 B
PHP

--TEST--
Bug #77088 (Segfault when using SoapClient with null options)
--EXTENSIONS--
soap
--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(): Argument #2 ($options) must be of type 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
}