[PEAR-BUG] Bug #14242 [Opn->Csd]: Uploaded file will be broken

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=14242&edit=1

 ID:               14242
 Updated by:       [email protected]
 Reported By:      hiroaki dot kawai at gmail dot com
 Summary:          Uploaded file will be broken
-Status:           Open
+Status:           Closed
 Type:             Bug
 Package:          HTTP_WebDAV_Server
 Operating System: Irrelevant
 Package Version:  1.0.0RC4
 PHP Version:      5.2.6
-Assigned To:      
+Assigned To:      doconnor
 Roadmap Versions: 
 New Comment:

-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.




Previous Comments:
------------------------------------------------------------------------

[2008-07-26 09:48:29] doconnor

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!)

------------------------------------------------------------------------

[2008-06-25 22:39:07] 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

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=14242&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.