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

Bug #15732 Files get truncated when saving to S3 with mbstring overloading enabled
Submitted: 2009-01-22 21:28 UTC
From: gauthierm Assigned: schmidt
Status: Closed Package: Services_Amazon_S3 (version CVS)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


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 : 37 + 40 = ?

 
 [2009-01-22 21:28 UTC] gauthierm (Michael Gauthier)
Description: ------------ mbstring function overloading makes strlen calculate string length in unicode characters. The content-length header specified in S3.php needs to be in bytes. The attached patch adds a static function to calculate string length in bytes even if mbstring overloading is enabled.

Comments

 [2009-02-15 21:31 UTC] schmidt (Christian Schmidt)
-Status: Open +Status: Closed -Assigned To: +Assigned To: schmidt
Fixed in CVS (in a slightly different way that suggested in the patch): http://news.php.net/php.pear.cvs/55338