Bug #14181 Updated: CURLOPT_WRITEHEADER make a segmentation fault
| From: | sterling@php.net | Date: | Mon, 03 Dec 2001 09:33:16 +0000 |
| Subject: | Bug #14181 Updated: CURLOPT_WRITEHEADER make a segmentation fault | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72321@lists.php.net to get a copy of this message | ||
ID: 14181
Updated by: sterling
Reported By: cahnakal@yahoo.com
Old Status: Open
Status: Closed
Bug Type: cURL related
Operating System: Linux Mandrake 8.1
PHP Version: 4.0.6
New Comment:
Try the latest CVS and re-open if this still happens....
Previous Comments:
------------------------------------------------------------------------
[2001-11-22 12:57:24] cahnakal@yahoo.com
I use php 4.0.6 rpm packed in Mandrake 8.1 CDROM. I test both with mod_php and php (shell
interpreter). my curl is :
curl 7.8.1 (i586-mandrake-linux-gnu) libcurl 7.8.1 (OpenSSL 0.9.6a)
<?
$myFile = tempnam("/tmp","curl");
$myFp = fopen($myFile,"w");
$myHeader = tempnam("/tmp","curl");
$myHp = fopen($myHeader,"w");
$ch = curl_init("http://www.natimages.com/images/scenic.jpg");
curl_setopt($ch,CURLOPT_FILE,$myFp);
curl_setopt($ch,CURLOPT_WRITEHEADER,$myHp);
curl_exec($ch);
curl_close($ch);
fclose($myFp);
fclose($myHp);
?>
INSTALLATION NOTES:
when installed, php package in Mandrake 8.1 rpm does not support curl, so I must install php_devel
rpm and build the curl extension
when build curl extension, I need libcurl rpm provided by Mandrake 8.1, and curl-devel rpm
that's NOT provided by Mandrake 8.1. So, I must install curl-devel rpm built for Redhat 7.2,
with option --nodeps to force it work in Mandrake environtment..
I do NOT found that another curl option buggy like this CURLOPT_WRITEHEADER
I'm not familiar with gdb, so I can not submit gdb backtrace
Thank
Tri
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14181&edit=1