Release: AWS SDK for PHP 1.3

Release Notes>PHP>Release: AWS SDK for PHP 1.3
This release adds support for Amazon EC2 VPC Internet Access, adds end-to-end support for JSON data types, and fixes issues reported to the forums.

Details

Submitted By: RyanP
Release Date: March 15, 2011 7:17 PM GMT
Latest Version: 1.3.0
Created On: March 15, 2011 7:17 PM GMT
Last Updated: March 15, 2011 7:17 PM GMT

Download

Download the AWS SDK for PHP 1.3.

New Features

Change Description

Amazon EC2 VPC Internet Access

The latest Amazon EC2 client allows you to configure Virtual Private Cloud (VPC) subnets to connect directly to the Internet, without requiring the traffic to be routed back through your company's network.

New CFJSON class

Simplifies the task of normalizing XML and JSON responses as CFSimpleXML objects.

EC2 Fixes

The $image_location parameter in the register_image() method is no longer required. This is a backwards-incompatible change.

For more information, please see: AmazonEC2::register_image issue.

S3 Fixes

Resolved an issue in get_object() where using the lastmodified and etag parameters required both to be set before taking effect. They can now be set independently of each other.

CFRuntime Fixes

Preliminary support for Signature v3 over HTTP has been added to the SDK. This is useful for debugging Signature v3 issues over non-HTTPS connections.

Classes that use the shared authentication method (i.e., NOT AmazonS3 or AmazonCloudFront) will automatically convert JSON service responses into a CFSimpleXML object.

Also: Formerly, the SDK would attempt to sniff the content to determine the type. Now, the SDK will check the HTTP response headers for text/xml, application/xml or application/json to determine whether or not to parse the content. If the HTTP response headers are not available, the SDK will still attempt content sniffing.

For more information, please see: Automatic Parseing of XML objects.

CFArray Fixes

The reduce() method has been renamed to filter() to more closely match its actual function. reduce() is now simply an alias for filter() for purposes of backwards compatibility.

CFSimpleXML Enhancements

The to_json() method has been added to the class.

CFUtilities Enhancements

The is_json() method has been added to the class.

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-01-01
Amazon Elastic MapReduce (Amazon EMR) 2009-03-31
Amazon Relational Database Service (Amazon RDS) 2010-07-28
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) 2010-07-01

Migration Guide

From Release Notes

1.2.x

If you are using the AmazonEC2 class:

  • Replace the existing SDK package with the current release.

  • Update any calls to authorize_security_group_ingress() with the new function signature.

  • Update any calls to describe_security_groups() with the new function signature.

  • Update any calls to register_image() with the new function signature.

  • Update any calls to release_address() with the new function signature.

  • Update any calls to revoke_security_group_ingress() with the new function signature.

If you are not using the AmazonEC2 class, simply replace the existing SDK package with the current release.

1.0–1.1

If you are using the AmazonCloudWatch class:

  • Replace the existing SDK package with the current release.

  • Update any calls to get_metric_statistics() with the new function signature.

If you are using the AmazonEC2 class:

  • Replace the existing SDK package with the current release.

  • Update any calls to authorize_security_group_ingress() with the new function signature.

  • Update any calls to describe_security_groups() with the new function signature.

  • Update any calls to register_image() with the new function signature.

  • Update any calls to release_address() with the new function signature.

  • Update any calls to revoke_security_group_ingress() with the new function signature.

If you are not using the AmazonCloudWatch or AmazonEC2 classes, simply replace the existing SDK package with the current release.

CloudFusion 2.5

A migration guide for customers wishing to upgrade from CloudFusion 2.5 to the AWS SDK for PHP 1.0 is located at http://aws.amazon.com/articles/4263

©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.