--- /dev/null
+--TEST--
+Bug #79357: SOAP request segfaults when any request parameter is missing
+--FILE--
+<?php
+
+$sc = new SoapClient(__DIR__ . '/bug79357.wsdl');
+$res = $sc->Add(['intA'=>1]);
+var_dump($res);
+
+?>
+--EXPECTF--
+Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'intB' property in %s:%d
+Stack trace:
+#0 %s(%d): SoapClient->__call('Add', Array)
+#1 {main}
+ thrown in %s on line %d
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
+ <s:element name="Add">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="intA" type="s:int" />
+ <s:element minOccurs="1" maxOccurs="1" name="intB" type="s:int" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="AddResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="AddResult" type="s:int" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ </s:schema>
+ </wsdl:types>
+ <wsdl:message name="AddSoapIn">
+ <wsdl:part name="parameters" element="tns:Add" />
+ </wsdl:message>
+ <wsdl:message name="AddSoapOut">
+ <wsdl:part name="parameters" element="tns:AddResponse" />
+ </wsdl:message>
+ <wsdl:portType name="CalculatorSoap">
+ <wsdl:operation name="Add">
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Adds two integers. This is a test WebService. ©DNE Online</wsdl:documentation>
+ <wsdl:input message="tns:AddSoapIn" />
+ <wsdl:output message="tns:AddSoapOut" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CalculatorSoap" type="tns:CalculatorSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="Add">
+ <soap:operation soapAction="http://tempuri.org/Add" style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="Calculator">
+ <wsdl:port name="CalculatorSoap" binding="tns:CalculatorSoap">
+ <soap:address location="http://www.dneonline.com/calculator.asmx" />
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>