From:             
Operating system: Windows 7 x64
PHP version:      5.3.10
Package:          cURL related
Bug Type:         Bug
Bug description:curl_multi_exec functionality broken

Description:
------------
Trying to run multiple curl calls, fails with a timeout while checking for
activity.

PHP 5.3.9 and before work just fine.

Test script:
---------------
<?php //Taken from 
$ch1 = curl_init();
$ch2 = curl_init();
curl_setopt($ch1, CURLOPT_URL,
"http://windows.php.net/downloads/releases/md5sum.txt";);
curl_setopt($ch1, CURLOPT_HEADER, 0);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch2, CURLOPT_URL,
"http://windows.php.net/downloads/releases/sha1sum.txt";);
curl_setopt($ch2, CURLOPT_HEADER, 0);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
$mh = curl_multi_init();
curl_multi_add_handle($mh,$ch1);
curl_multi_add_handle($mh,$ch2);
$active = null;
do { $mrc = curl_multi_exec($mh, $active); } while ($mrc ==
CURLM_CALL_MULTI_PERFORM);
while ($active && $mrc == CURLM_OK) if (curl_multi_select($mh) != -1) do {
$mrc = curl_multi_exec($mh, $active); } while ($mrc ==
CURLM_CALL_MULTI_PERFORM);
echo
strlen(curl_multi_getcontent($ch1))."-".strlen(curl_multi_getcontent($ch2));
curl_multi_remove_handle($mh, $ch1);
curl_multi_remove_handle($mh, $ch2);
curl_multi_close($mh);
?>

Expected result:
----------------
Seen on PHP 5.3.9:
531-1375

Actual result:
--------------
Seen on PHP 5.3.10:
Fatal error: Maximum execution time of 30 seconds exceeded in <filepath> on
line 15

-- 
Edit bug report at https://bugs.php.net/bug.php?id=61141&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61141&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61141&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61141&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61141&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61141&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61141&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61141&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61141&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61141&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61141&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61141&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61141&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61141&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61141&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61141&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61141&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61141&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61141&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61141&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61141&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61141&r=mysqlcfg

Reply via email to