php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #40997
Patch PatchSolutionBUG40997 revision 2012-10-13 00:05 UTC by jrsk2009 at hotmail dot com

Patch PatchSolutionBUG40997 for *Network Functions Bug #40997

Patch version 2012-10-13 00:05 UTC

Return to Bug #40997 | Download this patch
Patch Revisions:

Developer: jrsk2009@hotmail.com

Description:
------------
Solution for: 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_setopt($ch, CURLOPT_HTTPGET,1); // << Add to troubleshoot
curl_exec($ch);

Expected result:
----------------
the page contents

Actual result:
--------------
the page contents
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 13:01:23 2019 UTC