From:             zhangshun dot net at gmail dot com
Operating system: Linux
PHP version:      5.1.6
PHP Bug Type:     cURL related
Bug description:  Segmentation fault 

Description:
------------
It's happened when I want to work under https


Segmentation fault 

*** glibc detected *** double free or corruption (fasttop): 0x09149758 ***
Aborted

But in win32, It's ok.

Reproduce code:
---------------
<?php
   $url = 'https://www.yourserver.com/yourrequest';
   $params = "name=your_name&[EMAIL PROTECTED]";
   $user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_POST,1);
   curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
   curl_setopt($ch, CURLOPT_URL,$url);
   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);
   curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
   $result=curl_exec ($ch);
   curl_close ($ch);

   echo("Results: <br>".$result);
?>



Expected result:
----------------
Get https's result.

Actual result:
--------------
But get error string.

-- 
Edit bug report at http://bugs.php.net/?id=39246&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39246&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39246&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39246&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39246&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39246&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39246&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39246&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39246&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39246&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39246&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39246&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39246&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39246&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39246&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39246&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39246&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39246&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39246&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39246&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39246&r=mysqlcfg

Reply via email to