From: peterphp at mailinator dot com
Operating system: Windows XP
PHP version: 5.2.6
PHP Bug Type: cURL related
Bug description: Curl crash within a class
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 bug report at http://bugs.php.net/?id=45478&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45478&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45478&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45478&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45478&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45478&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45478&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45478&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45478&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45478&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45478&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45478&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45478&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45478&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45478&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45478&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45478&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45478&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45478&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45478&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45478&r=mysqlcfg