From: php at cakkie dot be Operating system: Debian PHP version: 5.1.6 PHP Bug Type: cURL related Bug description: Aborted when fetching https
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 bug report at http://bugs.php.net/?id=38686&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38686&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38686&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38686&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38686&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38686&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38686&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38686&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38686&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38686&r=support Expected behavior: http://bugs.php.net/fix.php?id=38686&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38686&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38686&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38686&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38686&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38686&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38686&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38686&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38686&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38686&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38686&r=mysqlcfg