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

Bug #14242 Uploaded file will be broken
Submitted: 2008-06-26 02:39 UTC
From: kawai Assigned: doconnor
Status: Closed Package: HTTP_WebDAV_Server (version 1.0.0RC4)
PHP Version: 5.2.6 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-26 02:39 UTC] kawai (Hiroaki Kawai)
Description: ------------ When I put a file from a client, an HTTP request will be submitted like this: PUT /server.php/sample.jpg HTTP/1.0 Content-range: bytes 0-16384/* Content-length: 16384 Content-type: image/jpeg But, the server only saves the first 8192 bytes of the content. This is because fread() won't read no longer than 8192 bytes in one execution. http://www.php.net/fread

Comments

 [2008-07-26 13:48 UTC] doconnor (Daniel O'Connor)
Hey thanks for the patch Hiroaki! I don't suppose you want to run PHP_CodeSniffer over it? Or provide a small test to go with this patch (to prevent regression!)
 [2011-06-19 19:30 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.