xref: /php-src/ext/soap/tests/bugs/bug79357.phpt (revision a70fd538)
1--TEST--
2Bug #79357: SOAP request segfaults when any request parameter is missing
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8$sc = new SoapClient(__DIR__ . '/bug79357.wsdl');
9$res = $sc->Add(['intA'=>1]);
10var_dump($res);
11
12?>
13--EXPECTF--
14Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'intB' property in %s:%d
15Stack trace:
16#0 %s(%d): SoapClient->__call('Add', Array)
17#1 {main}
18  thrown in %s on line %d
19