Edit report at https://bugs.php.net/bug.php?id=61886&edit=1

 ID:                 61886
 User updated by:    develop1983 at gmail dot com
 Reported by:        develop1983 at gmail dot com
 Summary:            cURL returns error 209
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            cURL related
 Operating System:   win7 x86
 PHP Version:        5.3.11
 Block user comment: N
 Private report:     N

 New Comment:

> I think this bug is related to Bug #61141 could you confirm ?

I think you're right. The issue is the same: works with curl from the php 5.3.9 
package and earlier versions and fails with later versions.

I've tested it with curl from the php 5.4.5 package. The bug slill exists.


Previous Comments:
------------------------------------------------------------------------
[2012-09-28 17:03:19] pierr...@php.net

I think this bug is related to Bug #61141 could you confirm ?

------------------------------------------------------------------------
[2012-05-09 19:13:07] develop1983 at gmail dot com

Any advancements?
Have you reproduced this issue?
Or you have question?

------------------------------------------------------------------------
[2012-05-03 17:17:24] develop1983 at gmail dot com

> I can not reproduce it with php5.3-trunk and libcurl/7.21.6 
It should work with libcurl/7.21.6 (I think), because it works with v7.21.7 (as 
I mentioned).
It doesn't work with cURL v7.24.0 (in PHP 5.3.11)

> and I think it should not a issue of libcurl's version. 
Hmmm... It notices cURL warnings...
And I don't think it is an issue of PHP.

> did you use APC or Eacc? thanks
I don't know. I downloaded the MSI file of PHP 5.3.11 and install the software 
(as I did with PHP 5.3.9 ago).
I don't use any additional softwares. Just PHP "as is" as it installed with MSI 
file.

Thanks.

------------------------------------------------------------------------
[2012-05-03 06:09:27] larue...@php.net

I can not reproduce it with php5.3-trunk and libcurl/7.21.6 

and I think it should not a issue of libcurl's version. 

did you use APC or Eacc? thanks

------------------------------------------------------------------------
[2012-05-01 10:50:07] develop1983 at gmail dot com

Test script:
-------------------------
<?php
$mh = curl_multi_init();
$ch_array = array ();
$links = array (
  'url1' => 'http://www.php.net/releases.atom',
  'url2' => 'http://www.php.net/feed.atom'
);
$user_agent_string = getenv('HTTP_USER_AGENT');
foreach ($links as $key => $url) {
  $cookies = '';
  $cookiejar = dirname(__FILE__) . '/' . $key;
  $headers = '';
  $ch = curl_init($url);
  if (substr($url, 0, 8) == 'https://') {
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  }
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 5000);
  if (!file_exists($cookiejar)) {
    if (!empty($cookies)) {
      curl_setopt($ch, CURLOPT_COOKIE, $cookies);
    }
  } else {
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar);
  }
  curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar);
  if (!empty($headers)) {
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  }
  curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);
  curl_setopt($ch, CURLOPT_USERAGENT, $user_agent_string);
  curl_multi_add_handle($mh, $ch);
  $ch_array[$key] = $ch;
}

do {
  $execReturnValue = curl_multi_exec($mh, $runningHandles);
} while ($execReturnValue == CURLM_CALL_MULTI_PERFORM);

while ($runningHandles && $execReturnValue == CURLM_OK) {
  if (curl_multi_select($mh) != -1) {
    do {
      $execReturnValue = curl_multi_exec($mh, $runningHandles);
      $info = curl_multi_info_read($mh);
      if ($info['msg'] == CURLMSG_DONE) {
        $ch = $info['handle'];
        if ($info['result'] == CURLM_OK) {
          // process data
           echo 'process data<br />' . PHP_EOL;
        } else {
          // error
          echo 'error<br />' . PHP_EOL;
        }
        curl_multi_remove_handle($mh, $ch);
        curl_close($ch);
      }
    } while ($execReturnValue == CURLM_CALL_MULTI_PERFORM);
  }
}
curl_multi_close($mh);
?>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=61886


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61886&edit=1

Reply via email to