From: ivan dot chollet at lynanda dot com Operating system: freebsd 5.3 PHP version: 5.0.2 PHP Bug Type: SOAP related Bug description: Error fetching http headers
Description: ------------ When the result of a web service function is a big string, PHP sends the error : Uncaught SoapFault exception: "[HTTP] Error fetching http headers in (/usr/local/ etc...)" The code used to make it crash is very simple. Reproduce code: --------------- on the server, let call our file "soap-server.php" with the code : <?php function crashfun{ for($i=0,$i<=2000000,$i++){ $result.='x'; } return $result; } $server= new soapserver('somewsdlfile.wsdl') $server->addfunction('crashfun'); $server->handle(); ?> on the client side, let invoke the web service in "soap-client.php" : <?php $client=new soapclient("somewsdlfile.wsdl"); print($client->crashfun()); ?> put all the files in the same directory Expected result: ---------------- when you call on the command line "php -f soap-client.php > shit | vi shit", you see a beautiful file filled with "x"s. set the upper bound for the for loop in the code to 100 000 and everything works well set it to 2 000 000 and it crashes. sorry i didn't take the time to check the exact limit for this upper bound and it's about 1 000 000 Actual result: -------------- the actual result is the bug mentionned in "description" -- Edit bug report at http://bugs.php.net/?id=31078&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31078&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31078&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31078&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31078&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31078&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31078&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31078&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31078&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31078&r=support Expected behavior: http://bugs.php.net/fix.php?id=31078&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31078&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31078&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31078&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31078&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31078&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31078&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31078&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31078&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31078&r=mysqlcfg