php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14181 CURLOPT_WRITEHEADER make a segmentation fault
Submitted: 2001-11-22 12:57 UTC Modified: 2001-12-03 04:33 UTC
From: cahnakal at yahoo dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.6 OS: Linux Mandrake 8.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cahnakal at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-11-22 12:57 UTC] cahnakal at yahoo dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 04:33 UTC] sterling@php.net
Try the latest CVS and re-open if this still happens....
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC