#49519 [Opn->Fbk]: Passing tmpfile() to CURLOPT_FILE gives warning

From: Date: Thu, 10 Sep 2009 13:04:46 +0000
Subject: #49519 [Opn->Fbk]: Passing tmpfile() to CURLOPT_FILE gives warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142223@lists.php.net to get a copy of this message
ID: 49519 Updated by: jani@php.net Reported By: sjoerd-php at linuxonly dot nl -Status: Open +Status: Feedback Bug Type: cURL related -Operating System: +Operating System: * PHP Version: 5.3.0 New Comment: 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.. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#142223) next »