File tree Expand file tree Collapse file tree 5 files changed +6
-54
lines changed Expand file tree Collapse file tree 5 files changed +6
-54
lines changed Original file line number Diff line number Diff line change 7
7
- $HOME/.composer/cache
8
8
9
9
php :
10
- - 7.1
11
10
- 7.2
12
11
- 7.3
12
+ - 7.4
13
+ - 8.0
13
14
14
15
env :
15
16
global :
@@ -26,14 +27,9 @@ matrix:
26
27
env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
27
28
- php : 7.2
28
29
env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
29
- - php : 7.3
30
- env : USE_ASYNC=true
31
30
32
31
before_install :
33
32
- travis_retry composer self-update
34
- - if [[ "$USE_ASYNC" = true ]]; then git clone https://github.com/concurrent-php/ext-async.git /tmp/async; fi
35
- - if [[ "$USE_ASYNC" = true ]]; then cd /tmp/async && phpize && ./configure && sudo make install; fi
36
- - if [[ "$USE_ASYNC" = true ]]; then echo "extension = async.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini && php -m && cd $TRAVIS_BUILD_DIR; fi
37
33
38
34
install :
39
35
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction --ignore-platform-reqs
Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
- ## 2.0.0 (unreleased)
3
+ ## 2.0.0
4
4
5
5
* Remove response and stream factory, use direct implementation of nyholm/psr7
6
6
* Async support with ext-async extension: see https://github.com/concurrent-php/ext-async
20
20
* ` ConnectionException `
21
21
* ` InvalidRequestException `
22
22
* ` SSLConnectionException `
23
-
23
+
24
24
## 1.2.0
25
25
26
26
* Dropped PHP 5.4 support
Original file line number Diff line number Diff line change 23
23
"php-http/client-common" : " ^2.0"
24
24
},
25
25
"provide" : {
26
- "php-http/client-implementation" : " 1.0"
26
+ "php-http/client-implementation" : " 1.0" ,
27
+ "psr/http-client" : " 1.0"
27
28
},
28
29
"autoload" : {
29
30
"psr-4" : {
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ class Client implements HttpClient
34
34
'ssl_method ' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
35
35
];
36
36
37
- private $ hasAsync ;
38
-
39
37
/**
40
38
* Constructor.
41
39
*
@@ -52,8 +50,6 @@ class Client implements HttpClient
52
50
*/
53
51
public function __construct ($ config1 = [], $ config2 = null , array $ config = [])
54
52
{
55
- $ this ->hasAsync = PHP_VERSION_ID >= 70300 && \extension_loaded ('async ' );
56
-
57
53
if (\is_array ($ config1 )) {
58
54
$ this ->config = $ this ->configure ($ config1 );
59
55
@@ -191,10 +187,6 @@ private function determineRemoteFromRequest(RequestInterface $request)
191
187
$ endpoint = $ request ->getHeaderLine ('Host ' );
192
188
}
193
189
194
- if ($ this ->hasAsync ) {
195
- return sprintf ('async-tcp://%s ' , $ endpoint );
196
- }
197
-
198
190
return sprintf ('tcp://%s ' , $ endpoint );
199
191
}
200
192
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments