#45478 [Com]: Curl crash within a class
| From: | peterphp at mailinator dot com | Date: | Fri, 11 Jul 2008 17:15:26 +0000 |
| Subject: | #45478 [Com]: Curl crash within a class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126504@lists.php.net to get a copy of this message | ||
ID: 45478
Comment by: peterphp at mailinator dot com
Reported By: peterphp at mailinator dot com
Status: Feedback
Bug Type: cURL related
Operating System: Windows XP
PHP Version: 5.2.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2008-07-11 15:06:40] jani@php.net
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