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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 14:01:33 2024 UTC