#40997 [Opn->Bgs]: cURL hangs the script

From: Date: Wed, 04 Apr 2007 19:03:34 +0000
Subject: #40997 [Opn->Bgs]: cURL hangs the script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111116@lists.php.net to get a copy of this message
ID: 40997 Updated by: tony2001@php.net Reported By: kolypto at mail dot ru -Status: Open +Status: Bogus Bug Type: *Network Functions Operating System: WIndows XP SP2 PHP Version: 5.2.1 New Comment: Not PHP problem. Please report it to cURL developers. Previous Comments: ------------------------------------------------------------------------ [2007-04-04 18:51:59] kolypto at mail dot ru Description: ------------ I've passed a CURLOPT twice, and the script has hanged Reproduce code: --------------- $ch=curl_init('http://myip.ru/'); curl_setopt($ch, CURLOPT_TIMEOUT,3); curl_setopt($ch, CURLOPT_NOBODY,1); curl_setopt($ch, CURLOPT_NOBODY,0); curl_exec($ch); Expected result: ---------------- the page contents Actual result: -------------- it hangs the script for 3 seconds, the cURL says "timeout" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40997&edit=1

« previous php.bugs (#111116) next »