|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPatchSolutionBUG40997 (last revision 2012-10-13 00:05 UTC by jrsk2009 at hotmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-04 19:03 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
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"