php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40997 cURL hangs the script
Submitted: 2007-04-04 18:51 UTC Modified: 2007-04-04 19:03 UTC
From: kolypto at mail dot ru Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: 5.2.1 OS: WIndows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kolypto at mail dot ru
New email:
PHP Version: OS:

 

 [2007-04-04 18:51 UTC] 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"

Patches

PatchSolutionBUG40997 (last revision 2012-10-13 00:05 UTC by jrsk2009 at hotmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-04 19:03 UTC] tony2001@php.net
Not PHP problem.
Please report it to cURL developers.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 00:01:27 2019 UTC