@@ -41,15 +41,6 @@ class SoapClient extends \SoapClient
4141 */
4242 protected $ tracingEnabled = false ;
4343
44- /**
45- * Work around missing header/php://input access in PHP cli webserver by
46- * setting headers additionally as GET parameters and SOAP request body
47- * explicitly as POST variable.
48- *
49- * @var boolean
50- */
51- private $ cliWebserverWorkaround = false ;
52-
5344 /**
5445 * cURL instance.
5546 *
@@ -108,10 +99,7 @@ public function __construct($wsdl, array $options = array())
10899 if (isset ($ options ['soap_version ' ])) {
109100 $ this ->soapVersion = $ options ['soap_version ' ];
110101 }
111- // activate cli webserver workaround
112- if (isset ($ options ['cli_webserver_workaround ' ])) {
113- $ this ->cliWebserverWorkaround = $ options ['cli_webserver_workaround ' ];
114- }
102+
115103 $ this ->curl = new Curl ($ options );
116104
117105 if (isset ($ options ['extra_options ' ])) {
@@ -158,25 +146,6 @@ private function __doHttpRequest(SoapRequest $soapRequest)
158146
159147 $ location = $ soapRequest ->getLocation ();
160148 $ content = $ soapRequest ->getContent ();
161- /*
162- * Work around missing header/php://input access in PHP cli webserver by
163- * setting headers additionally as GET parameters and SOAP request body
164- * explicitly as POST variable
165- */
166- if ($ this ->cliWebserverWorkaround === true ) {
167- if (strpos ($ location , '? ' ) === false ) {
168- $ location .= '? ' ;
169- } else {
170- $ location .= '& ' ;
171- }
172- $ location .= SoapMessage::CONTENT_TYPE_HEADER .'= ' .urlencode ($ soapRequest ->getContentType ());
173- $ location .= '& ' ;
174- $ location .= SoapMessage::SOAP_ACTION_HEADER .'= ' .urlencode ($ soapRequest ->getAction ());
175-
176- $ content = http_build_query (array ('request ' => $ content ));
177-
178- $ headers = array ();
179- }
180149
181150 $ headers = $ this ->filterRequestHeaders ($ soapRequest , $ headers );
182151
@@ -189,6 +158,7 @@ private function __doHttpRequest(SoapRequest $soapRequest)
189158 $ headers ,
190159 $ options
191160 );
161+
192162 // tracing enabled: store last request header and body
193163 if ($ this ->tracingEnabled === true ) {
194164 $ this ->lastRequestHeaders = $ this ->curl ->getRequestHeaders ();
0 commit comments