ID: 38686 Updated by: [EMAIL PROTECTED] Reported By: php at cakkie dot be -Status: Open +Status: Feedback Bug Type: cURL related Operating System: Debian 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-09-01 23:59:32] php at cakkie dot be 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. ------------------------------------------------------------------------ [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
