#38686 [Opn]: Aborted when fetching https

From: Date: Fri, 01 Sep 2006 23:59:32 +0000
Subject: #38686 [Opn]: Aborted when fetching https
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101629@lists.php.net to get a copy of this message
ID: 38686 User updated by: php at cakkie dot be Reported By: php at cakkie dot be Status: Open Bug Type: cURL related Operating System: Debian PHP Version: 5.1.6 New Comment: Forgot to mention: I'm using libcurl3-dev_7.15.5-1 The commandline version of curl is able to fetch from https without a problem. Previous Comments: ------------------------------------------------------------------------ [2006-09-01 23:54:15] php at cakkie dot be Description: ------------ When trying to fetch a page using https, it shows following error when calling curl_exec: *** glibc detected *** free(): invalid pointer: 0x40158640 *** This only happens when calling the PHP file from the commandline, and only when trying to fetch pages on https. When running the file through Apache 2.2.2, it works without a problem. When fetching from http instead of https, it works without a problem. Reproduce code: --------------- <?php $url = "https://someserver/somefile.ext"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?> Expected result: ---------------- running from commandline:#> php test.php This is the contents of https://someserver/somefile.ext running from browser:#> http://myserver/test.php This is the contents of https://someserver/somefile.ext Actual result: -------------- running from commandline:#> php test.php *** glibc detected *** free(): invalid pointer: 0x40158640 *** Aborted running from browser:#> http://myserver/test.php This is the contents of https://someserver/somefile.ext ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38686&edit=1

« previous php.bugs (#101629) next »