|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45478 CURLOPT_MAXCONNECTS crashes
Submitted: 2008-07-10 14:52 UTC Modified: 2008-08-07 01:00 UTC
Avg. Score:4.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: peterphp at mailinator dot com Assigned: fb-req-jani (profile)
Status: No Feedback Package: cURL related
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: peterphp at mailinator dot com
New email:
PHP Version: OS:


 [2008-07-10 14:52 UTC] peterphp at mailinator dot com

Well i have PHP 5.2.1 an exists the same problem, now i update to 5.2.6 but still exists, so, basicaly apache 2 crash when i try to execute this PHP class.

The problem is with $this->handle = curl_init();, if i use $some = curl_init(); work great.


Reproduce code:

class Browser {
   var $handle = null;

   function Browser() {
      $this->handle = curl_init(); 



Expected result:
Assing the curl handle to a class variable.

Actual result:
Sorry, Apache crash, it said that can't read in a memory sector.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 15:06 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce this..
 [2008-07-11 17:15 UTC] peterphp at mailinator dot com
My Apologies, I can't understand how I couldn't detect it before, you right, I finaly found that the problem is with CURLOPT_MAXCONNECTS option, try this:


$handle = curl_init();
curl_setopt($handle, CURLOPT_MAXCONNECTS, 10);


Thk U very much,
 [2008-07-30 18:55 UTC]
Please try using this CVS snapshot:
For Windows (zip):

For Windows (installer):

I can't reproduce using that last script of yours and latest CVS.
 [2008-08-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 08:01:29 2023 UTC