ID:               45478
 User updated by:  peterphp at mailinator dot com
 Reported By:      peterphp at mailinator dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         cURL related
 Operating System: Windows XP
 PHP Version:      5.2.6
 New Comment:

see above


Previous Comments:
------------------------------------------------------------------------

[2008-07-11 17:15:25] 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:

<?php

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

?>

Thk U very much,
Michael

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

[2008-07-11 15:06:40] [EMAIL PROTECTED]

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
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php 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-10 14:52:59] peterphp at mailinator dot com

Description:
------------
Hello,

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.

Regards,
Michael

Reproduce code:
---------------
<?php

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.


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


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

Reply via email to