#31078 [Opn]: Error fetching http headers
| From: | ivan dot chollet at lynanda dot com | Date: | Tue, 14 Dec 2004 01:43:21 +0000 |
| Subject: | #31078 [Opn]: Error fetching http headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70181@lists.php.net to get a copy of this message | ||
ID: 31078
User updated by: ivan dot chollet at lynanda dot com
Reported By: ivan dot chollet at lynanda dot com
Status: Open
Bug Type: SOAP related
Operating System: freebsd 5.3
PHP Version: 5.0.2
New Comment:
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)
Previous Comments:
------------------------------------------------------------------------
[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