#49519 [Fbk->Bgs]: Passing tmpfile() to CURLOPT_FILE gives warning
| From: | sjoerd@php.net | Date: | Thu, 10 Sep 2009 14:40:30 +0000 |
| Subject: | #49519 [Fbk->Bgs]: Passing tmpfile() to CURLOPT_FILE gives warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142228@lists.php.net to get a copy of this message | ||
ID: 49519
Updated by: sjoerd@php.net
Reported By: sjoerd-php at linuxonly dot nl
-Status: Feedback
+Status: Bogus
Bug Type: cURL related
Operating System: *
PHP Version: 5.3.0
New Comment:
Could not reproduce with latest 5.3 branch.
Previous Comments:
------------------------------------------------------------------------
[2009-09-10 13:04:46] 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 10:16:58] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49519&edit=1