cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE : Wrong return value

From: Stéphane Viaud-Murat <sviaud_at_madwaves.com>
Date: Tue, 13 Apr 2004 20:27:41 +0200

Thanks Daniel, I will do that and share the feedback if I have any...

Stephane

-----Message d'origine-----
De : curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] De la part de Daniel Stenberg
Envoyé : mardi 13 avril 2004 17:27
À : using curl with PHP
Objet : Re: Wrong return value

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.html
Received on 2004-04-13