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