Bug #61886 [Opn->Fbk]: cURL returns error 209
| From: | pierrick@php.net | Date: | Fri, 28 Sep 2012 17:03:19 +0000 |
| Subject: | Bug #61886 [Opn->Fbk]: cURL returns error 209 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173780@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61886&edit=1
ID: 61886
Updated by: pierrick@php.net
Reported by: develop1983 at gmail dot com
Summary: cURL returns error 209
-Status: Open
+Status: Feedback
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 ?
Previous Comments:
------------------------------------------------------------------------
[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] laruence@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);
?>
------------------------------------------------------------------------
[2012-05-01 09:26:48] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
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