ID: 39246 Updated by: [EMAIL PROTECTED] Reported By: zhangshun dot net at gmail dot com -Status: Open +Status: Feedback Bug Type: cURL related Operating System: Linux PHP Version: 5.1.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-10-24 11:32:37] zhangshun dot net at gmail dot com 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 this bug report at http://bugs.php.net/?id=39246&edit=1