1--TEST-- 2Bug #61525 (SOAP functions require at least one space after HTTP header colon) 3--EXTENSIONS-- 4soap 5--SKIPIF-- 6<?php 7if (@!include __DIR__."/../../../standard/tests/http/server.inc") die('skip server.inc not available'); 8http_server_skipif(); 9?> 10--FILE-- 11<?php 12require __DIR__."/../../../standard/tests/http/server.inc"; 13 14$response = <<<XML 15<?xml version="1.0" encoding="UTF-8"?> 16<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://testuri.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 17 <SOAP-ENV:Body> 18 <ns1:AddResponse> 19 <return xsi:type="xsd:int">7</return> 20 </ns1:AddResponse> 21 </SOAP-ENV:Body> 22</SOAP-ENV:Envelope> 23XML; 24 25$length = strlen($response); 26$server_response = "data://text/xml;base64," . base64_encode("HTTP/1.1 200 OK\r\nConnection:close\r\nContent-Length:$length\r\n\r\n$response"); 27['pid' => $pid, 'uri' => $uri] = http_server([$server_response]); 28$client = new SoapClient(NULL, ['location' => $uri, 'uri' => $uri]); 29var_dump($client->Add(3, 4)); 30http_server_kill($pid); 31?> 32--EXPECT-- 33int(7) 34