#31078 [Opn->Fbk]: Error fetching http headers

From: Date: Tue, 14 Dec 2004 12:32:09 +0000
Subject: #31078 [Opn->Fbk]: Error fetching http headers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70205@lists.php.net to get a copy of this message
ID: 31078 Updated by: dmitry@php.net Reported By: ivan dot chollet at lynanda dot com -Status: Open +Status: Feedback Bug Type: SOAP related Operating System: freebsd 5.3 PHP Version: 5.0.2 -Assigned To: +Assigned To: dmitry New Comment: Try to incrise "memory_limit" in your php.ini. Your soap server dies because of memory overflow and doesn't send HTTP response. This is not a bug. Previous Comments: ------------------------------------------------------------------------ [2004-12-14 02:43:17] ivan dot chollet at lynanda dot com if someone wants a wsdl file that works with then just ask me (basically there is one function returning a string a taking no argument so very simple) ------------------------------------------------------------------------ [2004-12-14 02:28:06] ivan dot chollet at lynanda dot com 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 this bug report at http://bugs.php.net/?id=31078&edit=1

« previous php.bugs (#70205) next »