cvs: pear /Services_Amazon_S3 S3.php

From: Date: Wed, 29 Apr 2009 14:57:46 +0000
Subject: cvs: pear /Services_Amazon_S3 S3.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56003@lists.php.net to get a copy of this message
schmidt Wed Apr 29 14:57:46 2009 UTC Modified files: /pear/Services_Amazon_S3 S3.php Log: ouch! wrong variable name. this caused zero-length files with HTTP_Request 1.4.0 but not with 1.4.2. http://cvs.php.net/viewvc.cgi/pear/Services_Amazon_S3/S3.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Services_Amazon_S3/S3.php diff -u pear/Services_Amazon_S3/S3.php:1.4 pear/Services_Amazon_S3/S3.php:1.5 --- pear/Services_Amazon_S3/S3.php:1.4 Sun Feb 15 16:29:35 2009 +++ pear/Services_Amazon_S3/S3.php Wed Apr 29 14:57:46 2009 @@ -41,7 +41,7 @@ * @author Christian Schmidt <chsc@peytz.dk> * @copyright 2008-2009 Peytz & Co. A/S * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: S3.php,v 1.4 2009/02/15 16:29:35 schmidt Exp $ + * @version CVS: $Id: S3.php,v 1.5 2009/04/29 14:57:46 schmidt Exp $ * @link http://pear.php.net/package/Services_Amazon_S3 * @link https://s3.amazonaws.com/ * @link http://docs.amazonwebservices.com/AmazonS3/2006-03-01/ @@ -420,7 +420,7 @@ // body is zero-length. // Use mb_strlen in case function overloading is enabled. $contentLength = function_exists('mb_strlen') - ? mb_strlen($string, '8bit') : strlen($string); + ? mb_strlen($body, '8bit') : strlen($body); $request->addHeader('Content-Length', $contentLength); } foreach ($headers as $name => $value) {

« previous php.pear.cvs (#56003) next »