xref: /php-src/ext/soap/tests/gh12392.phpt (revision 7e4a3236)
1--TEST--
2GH-12392 (Segmentation fault on SoapClient::__getTypes)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8$client = new SoapClient(__DIR__ . "/gh12392.wsdl", ['cache_wsdl' => WSDL_CACHE_NONE]);
9echo 'Client created!' . "\n";
10
11$types = $client->__getTypes();
12echo 'Got types!' . "\n";
13
14var_dump($types);
15
16?>
17--EXPECT--
18Client created!
19Got types!
20array(1) {
21  [0]=>
22  string(62) "struct dummy {
23 string foo;
24 string a;
25 string b;
26 string c;
27}"
28}
29