From: jsinglet at gmail dot com
Operating system: Mac OS X 10.4.10
PHP version: 5.2.3
PHP Bug Type: SOAP related
Bug description: Multiple SOAP Calls Fail in WSDL Mode
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
--
Edit bug report at http://bugs.php.net/?id=42191&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42191&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42191&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42191&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42191&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42191&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42191&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42191&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42191&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42191&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42191&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42191&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42191&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42191&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42191&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42191&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42191&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42191&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42191&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42191&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42191&r=mysqlcfg