Release: AWS SDK for PHP 1.3.5

Release Notes>PHP>Release: AWS SDK for PHP 1.3.5
This release adds support for the new CopyPart API in Amazon S3.


Submitted By: RyanP
Release Date: June 21, 2011 9:24 PM GMT
Latest Version: 1.3.5
Created On: June 21, 2011 9:24 PM GMT
Last Updated: June 21, 2011 9:24 PM GMT


Download the latest AWS SDK for PHP

New Features

Change Description

Amazon S3 CopyPart

The new CopyPart operation in the Amazon S3 API allows you to use an existing object as a part in an multipart upload.

Using the CopyPart operation with the AWS SDK for PHP is easy:

// Define a gigabyte
define('GB', 1024 * 1024 * 1024);

// Instantiate the class
$s3 = new AmazonS3();

// Copy a part. The source file MUST be larger than 5 GB.
$response = $s3->copy_part(

    // Source
    array( 'bucket' => 'my-bucket', 'filename' => 'movie.mp4' ),

    // Destination
    array( 'bucket' => 'my-bucket', 'filename' => 'movie2.mp4' ),

    // Upload ID

    // Part Number

    // Optional parameters
    array( 'range' => '0-' . 5*GB )

Known Issues

Issue Description

2GB limit for 32-bit stacks

Because PHP's integer type is signed and many platforms use 32-bit integers, the AWS SDK for PHP does not correctly handle files larger than 2GB on a 32-bit stack (whereby "stack" includes CPU, OS, web server, and PHP binary). This is a well-known PHP issue.

For more information, please see: PHP filesize: Return values. A workaround is suggested in AmazonS3::create_mpu_object() with files bigger than 2GB.

Supported API Versions

The AWS SDK for PHP supports the following services and API versions:

Service API Version
Amazon CloudFront 2010-11-01
Amazon CloudWatch 2010-08-01
Amazon Elastic Compute Cloud (Amazon EC2) with Amazon Virtual Private Cloud (Amazon VPC) 2011-05-15
Amazon Elastic MapReduce (Amazon EMR) 2009-03-31
Amazon Relational Database Service (Amazon RDS) 2011-04-01
Amazon Simple Storage Service (Amazon S3) 2006-03-01
Amazon SimpleDB 2009-04-15
Amazon Simple Email Service (Amazon SES) 2010-12-01
Amazon Simple Notification Service (Amazon SNS) 2010-03-31
Amazon Simple Queue Service (Amazon SQS) 2009-02-01
Auto Scaling 2010-08-01
AWS CloudFormation 2010-05-15
AWS Elastic Beanstalk 2010-12-01
AWS Identity and Access Management 2010-05-08
AWS Import/Export 2010-06-01
Elastic Load Balancing (ELB) 2011-04-05
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.