From 8e30e22b37a58fde7abf0ca67ef216d9f16a3cd1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Aug 2017 17:09:04 +0200 Subject: v3.32.0 from Fedora --- php-aws-sdk3-upstream-pull-request-1298.patch | 134 -------------------------- 1 file changed, 134 deletions(-) delete mode 100644 php-aws-sdk3-upstream-pull-request-1298.patch (limited to 'php-aws-sdk3-upstream-pull-request-1298.patch') diff --git a/php-aws-sdk3-upstream-pull-request-1298.patch b/php-aws-sdk3-upstream-pull-request-1298.patch deleted file mode 100644 index 1d116c2..0000000 --- a/php-aws-sdk3-upstream-pull-request-1298.patch +++ /dev/null @@ -1,134 +0,0 @@ -From 634ba5285ced6c01b0824c5c22baeef17e04d33c Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Sat, 27 May 2017 08:12:19 +0200 -Subject: [PATCH 1/3] fix count(): Parameter must be an array or an object that - implements Countable (php 7.2) - ---- - src/History.php | 2 +- - src/LruArrayCache.php | 9 +++++++-- - tests/S3/BatchDeleteTest.php | 2 +- - 3 files changed, 9 insertions(+), 4 deletions(-) - -diff --git a/src/History.php b/src/History.php -index 89e278a72..d9feee8a0 100644 ---- a/src/History.php -+++ b/src/History.php -@@ -11,7 +11,7 @@ - class History implements \Countable, \IteratorAggregate - { - private $maxEntries; -- private $entries; -+ private $entries = array(); - - /** - * @param int $maxEntries Maximum number of entries to store. -diff --git a/src/LruArrayCache.php b/src/LruArrayCache.php -index 39ff7fc04..aef2dd537 100644 ---- a/src/LruArrayCache.php -+++ b/src/LruArrayCache.php -@@ -11,13 +11,13 @@ - * cache, if the number of cached items exceeds the allowed number, the first - * N number of items are removed from the array. - */ --class LruArrayCache implements CacheInterface -+class LruArrayCache implements CacheInterface, \Countable - { - /** @var int */ - private $maxItems; - - /** @var array */ -- private $items; -+ private $items = array(); - - /** - * @param int $maxItems Maximum number of allowed cache items. -@@ -71,4 +71,9 @@ public function remove($key) - { - unset($this->items[$key]); - } -+ -+ public function count() -+ { -+ return count($this->items); -+ } - } -diff --git a/tests/S3/BatchDeleteTest.php b/tests/S3/BatchDeleteTest.php -index 7934379af..dda2641b5 100644 ---- a/tests/S3/BatchDeleteTest.php -+++ b/tests/S3/BatchDeleteTest.php -@@ -206,7 +206,7 @@ public function testWithNoMatchingObjects() - $batch->delete(); - $last = $mock->getLastCommand(); - $this->assertEquals('ListObjects', $last->getName()); -- $this->assertEquals(0, count($last['Delete']['Objects'])); -+ $this->assertFalse(isset($last['Delete']['Objects'])); - $this->assertEquals('foo', $last['Bucket']); - } - } - -From 5dc49b75e05b43fc250d8dd949d583287ce1b2a0 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Sat, 27 May 2017 08:41:21 +0200 -Subject: [PATCH 2/3] fix session_set_save_handler(): Cannot change save - handler when headers already sent (php 7.2) - ---- - tests/DynamoDb/DynamoDbClientTest.php | 1 + - tests/DynamoDb/SessionHandlerTest.php | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/tests/DynamoDb/DynamoDbClientTest.php b/tests/DynamoDb/DynamoDbClientTest.php -index 1b549921e..1bec6759b 100644 ---- a/tests/DynamoDb/DynamoDbClientTest.php -+++ b/tests/DynamoDb/DynamoDbClientTest.php -@@ -12,6 +12,7 @@ - - /** - * @covers \Aws\DynamoDb\DynamoDbClient -+ * @runTestsInSeparateProcesses - */ - class DynamoDbClientTest extends \PHPUnit_Framework_TestCase - { -diff --git a/tests/DynamoDb/SessionHandlerTest.php b/tests/DynamoDb/SessionHandlerTest.php -index 07915e652..62c4a97a9 100644 ---- a/tests/DynamoDb/SessionHandlerTest.php -+++ b/tests/DynamoDb/SessionHandlerTest.php -@@ -6,6 +6,7 @@ - - /** - * @covers Aws\DynamoDb\SessionHandler -+ * @runTestsInSeparateProcesses - */ - class SessionHandlerTest extends \PHPUnit_Framework_TestCase - { - -From 93ba536daac90e15a5c91eb6e7d8507cf4546406 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Sat, 27 May 2017 08:52:22 +0200 -Subject: [PATCH 3/3] enable nightly (7.2) - ---- - .travis.yml | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/.travis.yml b/.travis.yml -index 4160ad7de..68b0646ac 100644 ---- a/.travis.yml -+++ b/.travis.yml -@@ -5,6 +5,7 @@ php: - - 5.6 - - 7.0 - - 7.1 -+ - nightly - - hhvm - - sudo: false -@@ -16,6 +17,7 @@ env: - matrix: - allow_failures: - - php: hhvm -+ - php: nightly - fast_finish: true - - install: -- cgit