|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-22 15:24 UTC] dmitry@php.net
[2007-08-30 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ Multiple calls from a PHP-based SOAPClient to a PHP-based SOAPServer fail. When you make even two using the same client handle, the call fails with the error: PHP Warning: SoapClient::__doRequest(): 7168 bytes of buffered data lost during stream conversion! Reproduce code: --------------- THE SERVER CODE $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input"); ini_set("soap.wsdl_cache_enabled", 0); $s = new SoapServer('MyWS.wsdl'); $s->setClass('ClientService'); $s->handle(); CLIENT CLODE ini_set("soap.wsdl_cache_enabled", 0); $client = new SoapClient('MyWS.wsdl', array("classmap"=>array("NewClient"=>"NewClient"))); $result = $client->getNewClient(); //SECOND CALL CREATES WARNING $result = $client->getNewClient(); Expected result: ---------------- The script should run with no errors or warnings. Actual result: -------------- PHP Warning: SoapClient::__doRequest(): 7168 bytes of buffered data lost during stream conversion! in /Users/../test.php