#42531 [Opn->Fbk]: Too many curl_copy_handle() calls causes a crash
| From: | jani@php.net | Date: | Fri, 16 Nov 2007 14:23:07 +0000 |
| Subject: | #42531 [Opn->Fbk]: Too many curl_copy_handle() calls causes a crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119740@lists.php.net to get a copy of this message | ||
ID: 42531
Updated by: jani@php.net
Reported By: nicolac76 at yahoo dot fr
-Status: Open
+Status: Feedback
Bug Type: cURL related
Operating System: Windows XP
PHP Version: 5.2.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
I fixed a related bug in curl_copy_handle(), please try the snapshot to
see if it caused this bug too.
Previous Comments:
------------------------------------------------------------------------
[2007-09-03 13:46:36] nicolac76 at yahoo dot fr
I change only the post options...
I need too read many time the same page with different post...
------------------------------------------------------------------------
[2007-09-03 13:29:19] jani@php.net
I just have to ask: WHY do you do something like this anyway?!
------------------------------------------------------------------------
[2007-09-03 13:06:58] nicolac76 at yahoo dot fr
Description:
------------
If we doing a for on a curl_multi_add_handle, Apache shut down without
reason...
We can do 127 time, but no 128 (0111 111b)...
The problem come from the function not from the variable $i !
Reproduce code:
---------------
<?
$mh=curl_multi_init();
$ch = curl_init('http://www.example.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
for($i = 1; $i <= 128; $i++)
{
$conn[$i] = curl_copy_handle($ch);
curl_multi_add_handle ($mh,$conn[$i]);
}
...
?>
Expected result:
----------------
No error
Actual result:
--------------
An error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42531&edit=1