curl-and-php
Re: Wrong return value
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 13 Apr 2004 17:27:26 +0200 (CEST)
Date: Tue, 13 Apr 2004 17:27:26 +0200 (CEST)
On Tue, 13 Apr 2004, Stéphane Viaud-Murat wrote:
> When I echo $html = curl_exec ($ch);
> I sometimes get "1" as $html value, instead of the html page itself. The
> script is time limited by PHP to 30 seconds, but this should not occur since
> CONNECTTIMEOUT and TIMEOUT are set.
The entire CURLOPT_RETURNTRANSFER logic is done by the php/curl module and is
not something that libcurl does on its own. Therefore, I would say that you
have identified a bug in PHP and not in curl and I suggest that you report
this problem to the PHP team (preferably after having found a way to repeat
this problem with a recent PHP version).
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-04-13