From: Operating system: windows (XP,7) PHP version: 5.3.9 Package: cURL related Bug Type: Bug Bug description:"curl_multi_select" executed first time always one second
Description: ------------ In Windows (tested XP and w7) function "curl_multi_select" executed first time always one second (equal to default parameter - $timeout) --- >From manual page: http://www.php.net/function.curl-multi-init#refsect1-function.curl-multi-init-examples --- Test script: --------------- $ch1 = curl_init(); curl_setopt_array($ch1, array(CURLOPT_URL=>"http://lxr.php.net/", CURLOPT_HEADER=>0, CURLOPT_RETURNTRANSFER=>1)); $mh = curl_multi_init(); curl_multi_add_handle($mh,$ch1); $active = null; do $mrc = curl_multi_exec($mh, $active); while ($mrc == CURLM_CALL_MULTI_PERFORM); $start_time = microtime(true); while ($active && $mrc == CURLM_OK) { if (curl_multi_select($mh) != -1) { #after first run = 1 sec echo (microtime(true)-$start_time)."<br>".PHP_EOL; do $mrc = curl_multi_exec($mh, $active); while ($mrc == CURLM_CALL_MULTI_PERFORM); } } curl_multi_remove_handle($mh, $ch1); curl_multi_close($mh); -- Edit bug report at https://bugs.php.net/bug.php?id=60790&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60790&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60790&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60790&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60790&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60790&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60790&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60790&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60790&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60790&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60790&r=support Expected behavior: https://bugs.php.net/fix.php?id=60790&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60790&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60790&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60790&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60790&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60790&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60790&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60790&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60790&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60790&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60790&r=mysqlcfg