-
Notifications
You must be signed in to change notification settings - Fork 20
Upgrade to Guzzle 6 #54
Comments
👍 On install, we currently get warnings like:
|
This is the same version of Guzzle used in [Drupal 8.0.0-beta10](http://cgit.drupalcode.org/drupal/tree/core/composer.json?id=8.0.0-beta10#n23). ``` $ composer require "guzzlehttp/guzzle:~5.0" ./composer.json has been updated Loading composer repositories with package information Initializing PEAR repository http://pear.php.net Updating dependencies (including require-dev) - Installing react/promise (v2.2.0) Loading from cache - Installing guzzlehttp/streams (3.0.0) Loading from cache - Installing guzzlehttp/ringphp (1.0.7) Loading from cache - Installing guzzlehttp/guzzle (5.2.0) Loading from cache Writing lock file Generating autoload files ```
This is the same version of Guzzle used in [Drupal 8.0.0-beta10](http://cgit.drupalcode.org/drupal/tree/core/composer.json?id=8.0.0-beta10#n23). $ composer require "guzzlehttp/guzzle:~5.0" ./composer.json has been updated Loading composer repositories with package information Initializing PEAR repository http://pear.php.net Updating dependencies (including require-dev) - Installing react/promise (v2.2.0) Loading from cache - Installing guzzlehttp/streams (3.0.0) Loading from cache - Installing guzzlehttp/ringphp (1.0.7) Loading from cache - Installing guzzlehttp/guzzle (5.2.0) Loading from cache Writing lock file Generating autoload files
PHP 5.4 is the minimum requirement for the following: - guzzle 5.2.0 - ringphp 1.0.7 - streams 3.0.0 - phploc 2.1.1 - promise v2.2.0 $ find vendor -name composer.json -exec grep -o ".\bphp\b.:.*" {} \; | sort -u "php": ">=5.2.3" "php": ">=5.3", "php": ">=5.3.0" "php": ">=5.3.0", "php": ">=5.3.2" "php": ">=5.3.2", "php": ">=5.3.3" "php": ">=5.3.3", "php": ">=5.4", "php": ">=5.4.0" "php": ">=5.4.0", $ find vendor -name composer.json -exec grep -H ".\bphp\b.:.*5\.4" {} \; | sort -u vendor/guzzlehttp/guzzle/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/ringphp/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/streams/composer.json: "php": ">=5.4.0" vendor/phploc/phploc/composer.json: "php": ">=5.4", vendor/react/promise/composer.json: "php": ">=5.4.0" This commit also removes the php 5.3 test environment from Travis CI.
…\Response as a constructor arg for acquia#54. This is a backward-compatible modification to Acquia\Rest\Collection and Acquia\Rest\Element so that the constructor may be used interchangeably with Guzzle 3.x and higher. Since guzzle isn't strictly required for the acquia/acquia-sdk-php-rest sub-package, I've added the old and present versions of Guzzle as composer suggestions, and removed the requirement on Guzzle 3. The constructor for Acquia\Rest\Collection is no longer strongly typed, but will throw an InvalidArgumentException if an unusual object is passed to it.
Guzzle 6 is out. The AWS PHP SDK and Zendesk API libs both depend on Guzzle 6. Please consider skipping 5 and jumping straight to 6. |
This is the same version of Guzzle used in [Drupal 8.0.0-beta10](http://cgit.drupalcode.org/drupal/tree/core/composer.json?id=8.0.0-beta10#n23). $ composer require "guzzlehttp/guzzle:~5.0" ./composer.json has been updated Loading composer repositories with package information Initializing PEAR repository http://pear.php.net Updating dependencies (including require-dev) - Installing react/promise (v2.2.0) Loading from cache - Installing guzzlehttp/streams (3.0.0) Loading from cache - Installing guzzlehttp/ringphp (1.0.7) Loading from cache - Installing guzzlehttp/guzzle (5.2.0) Loading from cache Writing lock file Generating autoload files
PHP 5.4 is the minimum requirement for the following: - guzzle 5.2.0 - ringphp 1.0.7 - streams 3.0.0 - phploc 2.1.1 - promise v2.2.0 $ find vendor -name composer.json -exec grep -o ".\bphp\b.:.*" {} \; | sort -u "php": ">=5.2.3" "php": ">=5.3", "php": ">=5.3.0" "php": ">=5.3.0", "php": ">=5.3.2" "php": ">=5.3.2", "php": ">=5.3.3" "php": ">=5.3.3", "php": ">=5.4", "php": ">=5.4.0" "php": ">=5.4.0", $ find vendor -name composer.json -exec grep -H ".\bphp\b.:.*5\.4" {} \; | sort -u vendor/guzzlehttp/guzzle/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/ringphp/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/streams/composer.json: "php": ">=5.4.0" vendor/phploc/phploc/composer.json: "php": ">=5.4", vendor/react/promise/composer.json: "php": ">=5.4.0" This commit also removes the php 5.3 test environment from Travis CI.
…\Response as a constructor arg for acquia#54. This is a backward-compatible modification to Acquia\Rest\Collection and Acquia\Rest\Element so that the constructor may be used interchangeably with Guzzle 3.x and higher. Since guzzle isn't strictly required for the acquia/acquia-sdk-php-rest sub-package, I've added the old and present versions of Guzzle as composer suggestions, and removed the requirement on Guzzle 3. The constructor for Acquia\Rest\Collection is no longer strongly typed, but will throw an InvalidArgumentException if an unusual object is passed to it.
@cpliakas @Zlender do you have updates? We have some problems with this, because right now we should working with 2 different versions of guzzle in one project. And it's a little bit complex because we should handle different Exception types. Maybe it will be better to prepare some adapters and decouple guzzle at all? It will be useful because end-user can decide which version he wants to use. |
poking this again, updating to Guzzle 6 would be very nice. |
Adding another comment to this to bump this issue as we're starting to use this library more for our deployments. |
This is the same version of Guzzle used in [Drupal 8.0.0-beta10](http://cgit.drupalcode.org/drupal/tree/core/composer.json?id=8.0.0-beta10#n23). $ composer require "guzzlehttp/guzzle:~5.0" ./composer.json has been updated Loading composer repositories with package information Initializing PEAR repository http://pear.php.net Updating dependencies (including require-dev) - Installing react/promise (v2.2.0) Loading from cache - Installing guzzlehttp/streams (3.0.0) Loading from cache - Installing guzzlehttp/ringphp (1.0.7) Loading from cache - Installing guzzlehttp/guzzle (5.2.0) Loading from cache Writing lock file Generating autoload files
PHP 5.4 is the minimum requirement for the following: - guzzle 5.2.0 - ringphp 1.0.7 - streams 3.0.0 - phploc 2.1.1 - promise v2.2.0 $ find vendor -name composer.json -exec grep -o ".\bphp\b.:.*" {} \; | sort -u "php": ">=5.2.3" "php": ">=5.3", "php": ">=5.3.0" "php": ">=5.3.0", "php": ">=5.3.2" "php": ">=5.3.2", "php": ">=5.3.3" "php": ">=5.3.3", "php": ">=5.4", "php": ">=5.4.0" "php": ">=5.4.0", $ find vendor -name composer.json -exec grep -H ".\bphp\b.:.*5\.4" {} \; | sort -u vendor/guzzlehttp/guzzle/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/ringphp/composer.json: "php": ">=5.4.0", vendor/guzzlehttp/streams/composer.json: "php": ">=5.4.0" vendor/phploc/phploc/composer.json: "php": ">=5.4", vendor/react/promise/composer.json: "php": ">=5.4.0" This commit also removes the php 5.3 test environment from Travis CI.
…\Response as a constructor arg for acquia#54. This is a backward-compatible modification to Acquia\Rest\Collection and Acquia\Rest\Element so that the constructor may be used interchangeably with Guzzle 3.x and higher. Since guzzle isn't strictly required for the acquia/acquia-sdk-php-rest sub-package, I've added the old and present versions of Guzzle as composer suggestions, and removed the requirement on Guzzle 3. The constructor for Acquia\Rest\Collection is no longer strongly typed, but will throw an InvalidArgumentException if an unusual object is passed to it.
The version of Guzzle being used here (3.x) is almost four years old. That's gotta be insecure, not to mention the fact that it produces numerous warnings whenever a project depending on this sdk is installed. We'd love to use this in BLT, but I don't know that I'm willing to do so if it's going to produce so many bright yellow deprecation warnings, which will scare and annoy a lot of users. That's going to create a negative image for BLT and Acquia in general. Can this be prioritized? Edit: a quick Google reveals at least one known security issue with Guzzle 3, who knows how many more are out there: https://github.com/guzzle/guzzle3/issues/71 |
@dane: This repository was maintained by people that no longer work at Acquia. It is currently unsupported. |
@aaronpacheco can the readme be upgraded to reflect this? |
Done. |
Here is a new version of the SDK that uses the v2 Cloud API: https://github.com/typhonius/acquia-php-sdk-v2 I haven't tested that yet, but assuming it's functional, I'd recommend everyone deprecating this and moving to use and support acquia-php-sdk-v2. |
No description provided.
The text was updated successfully, but these errors were encountered: