php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23297 segfault with CURLOPT_UPLOAD
Submitted: 2003-04-21 10:50 UTC Modified: 2003-04-21 12:31 UTC
From: greg at mtechsolutions dot ca Assigned:
Status: Closed Package: cURL related
PHP Version: 4.3.1 OS: linux redhat 8.0
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: greg at mtechsolutions dot ca
New email:
PHP Version: OS:

 

 [2003-04-21 10:50 UTC] greg at mtechsolutions dot ca
As soon as I try to use curl_setopt with CURLOPT_UPLOAD, I get a segfault, using php-cli 4.3.1.

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://domain/upload");
curl_setopt($ch, CURLOPT_UPLOAD, 1);
$results = curl_exec($ch);
curl_close($ch);

This is similar to bug 22681, but it happens without anything to do with fopen() as described in that bug.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-21 12:31 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Seems to be fixed. (you need to update Curl too)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 18:01:27 2025 UTC