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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 22 23:01:28 2025 UTC