Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.5

Bug #3580 Fileupload doesn't work
Submitted: 2005-02-24 15:25 UTC
From: cmoehrke at netviser dot de Assigned: jstump
Status: Closed Package: Net_Curl
PHP Version: 5.0.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 32 - 9 = ?

 
 [2005-02-24 15:25 UTC] cmoehrke at netviser dot de
Description: ------------ CURL needs a file resource, but Net_Curl expects $file to be a filename. As Net_Curl uses filesize() to detect the size it is not possible to use a file resource Reproduce code: --------------- $curl = new Net_Curl('http://www.netviser.de/'); $curl->username='xx'; $curl->password='xx'; $curl->file='data.xml'; $res=$curl->execute(); $curl->close(); Expected result: ---------------- No Error Actual result: -------------- Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /usr/local/php/pear/Net/Curl.php on line 358 socket error: 111

Comments

 [2005-07-13 21:37 UTC] joe at joestump dot net
This has been fixed in my patch. Hopefully this all gets accepted and rolled into a release. You can download and apply the various patches from here: http://zebulon.miester.org/~jstump/pear/Net_Curl/
 [2005-07-28 02:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!