|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-14 02:43 UTC] ivan dot chollet at lynanda dot com
[2004-12-14 13:31 UTC] dmitry@php.net
[2004-12-14 18:26 UTC] ivan dot chollet at lynanda dot com
[2005-02-28 21:16 UTC] sniper@php.net
[2005-03-07 12:35 UTC] ivan dot chollet at lynanda dot com
[2005-03-07 21:44 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 18:00:01 2025 UTC |
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"