Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Commit 42d8627

Browse files
committed
1 parent 4b50b81 commit 42d8627

File tree

6 files changed

+43
-12
lines changed

6 files changed

+43
-12
lines changed

_docs/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Changelog: 1.5.17.1
2+
3+
Launched Monday, November 26, 2012.
4+
5+
## Bug fixes and enhancements
6+
* **Fixed:** Resolved an issue where large responses from Amazon DynamoDB were triggering unnecessary request retries.
7+
8+
## Services
9+
### AmazonDynamoDB
10+
* **New:** Support for the South American (São Paulo) Region has been added to Amazon DynamoDB.
11+
112
# Changelog: 1.5.17
213

314
Launched Tuesday, November 13, 2012.

lib/requestcore/requestcore.class.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ class RequestCore
161161
*/
162162
public $allow_set_time_limit = true;
163163

164+
/**
165+
* Whether or not to use gzip encoding via CURLOPT_ENCODING
166+
*/
167+
public $use_gzip_enconding = true;
168+
164169

165170
/*%******************************************************************************************%*/
166171
// CONSTANTS
@@ -686,7 +691,7 @@ public function prep_request()
686691
}
687692

688693
// Handle the encoding if we can.
689-
if (extension_loaded('zlib'))
694+
if ($this->use_gzip_enconding && extension_loaded('zlib'))
690695
{
691696
curl_setopt($curl_handle, CURLOPT_ENCODING, 'gzip, deflate');
692697
}

package.xml

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

sdk.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ function __aws_sdk_ua_callback()
115115
// INTERMEDIARY CONSTANTS
116116

117117
define('CFRUNTIME_NAME', 'aws-sdk-php');
118-
define('CFRUNTIME_VERSION', '1.5.17');
119-
define('CFRUNTIME_BUILD', '20121113183000');
118+
define('CFRUNTIME_VERSION', '1.5.17.1');
119+
define('CFRUNTIME_BUILD', '20121126140000');
120120
define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . str_replace(' ', '_', php_uname('s')) . '/' . str_replace(' ', '_', php_uname('r')) . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback());
121121

122122

services/dynamodb.class.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ class AmazonDynamoDB extends CFRuntime
102102
*/
103103
const REGION_TOKYO = self::REGION_APAC_NE1;
104104

105+
/**
106+
* Specify the queue URL for the South America (Sao Paulo) Region.
107+
*/
108+
const REGION_SA_E1 = 'dynamodb.sa-east-1.amazonaws.com';
109+
110+
/**
111+
* Specify the queue URL for the South America (Sao Paulo) Region.
112+
*/
113+
const REGION_SAO_PAULO = self::REGION_SA_E1;
114+
105115
/**
106116
* Default service endpoint.
107117
*/
@@ -314,7 +324,7 @@ public function __construct(array $options = array())
314324
/**
315325
* This allows you to explicitly sets the region for the service to use.
316326
*
317-
* @param string $region (Required) The region to explicitly set. Available options are <REGION_US_E1>, <REGION_US_W1>, <REGION_US_W2>, <REGION_EU_W1>, <REGION_APAC_SE1>, <REGION_APAC_SE2>, <REGION_APAC_NE1>.
327+
* @param string $region (Required) The region to explicitly set. Available options are <REGION_US_E1>, <REGION_US_W1>, <REGION_US_W2>, <REGION_EU_W1>, <REGION_APAC_SE1>, <REGION_APAC_SE2>, <REGION_APAC_NE1>, <REGION_SA_E1>.
318328
* @return $this A reference to the current instance.
319329
*/
320330
public function set_region($region)

utilities/request.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public function __construct($url = null, $proxy = null, $helpers = null, CFCrede
6565
$this->credentials = $credentials;
6666
$this->cacert_location = ($this->credentials['certificate_authority'] ? $this->credentials['certificate_authority'] : false);
6767

68+
if (strpos(parse_url($url, PHP_URL_HOST), 'dynamodb') === 0)
69+
{
70+
$this->use_gzip_enconding = false;
71+
}
72+
6873
return $this;
6974
}
7075
}

0 commit comments

Comments
 (0)