php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49519 Passing tmpfile() to CURLOPT_FILE gives warning
Submitted: 2009-09-10 10:16 UTC Modified: 2009-09-10 14:40 UTC
From: sjoerd-php at linuxonly dot nl Assigned:
Status: Not a bug Package: cURL related
PHP Version: 5.3.0 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sjoerd-php at linuxonly dot nl
New email:
PHP Version: OS:

 

 [2009-09-10 10:16 UTC] sjoerd-php at linuxonly dot nl
Description:
------------
Passing a resource created by tmpfile() gives a warning that the resource is not writable.

Reproduce code:
---------------
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_FILE, tmpfile());
?>

Expected result:
----------------
No warning.

Actual result:
--------------
Warning: curl_setopt(): the provided file handle is not writable in /Volumes/sjoerd-nfs/public_html/svnreps/test/a.php on line 4


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-10 13:04 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Works fine for me..
 [2009-09-10 14:40 UTC] sjoerd@php.net
Could not reproduce with latest 5.3 branch.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC