diff options
author | Stoyan Markov <stoyan.markov@modix.eu> | 2020-09-04 12:49:38 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2020-10-01 23:02:51 +0200 |
commit | 44b0b5d3c9b2bcaae43470bfe98721d0281958e5 (patch) | |
tree | 449ba6477286a35b847b33e009d99c568afa7e37 /lib/php | |
parent | fa22f34e7466d0654dd207ab2e593c5337a1eac5 (diff) | |
download | thrift-44b0b5d3c9b2bcaae43470bfe98721d0281958e5.tar.gz |
THRIFT-5103: Fix for PHP7.4 deprecated syntax
Client: php
Patch: Stoyan Markov
This closes #2230
Diffstat (limited to 'lib/php')
-rw-r--r-- | lib/php/lib/Transport/TCurlClient.php | 2 | ||||
-rw-r--r-- | lib/php/lib/Transport/THttpClient.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/php/lib/Transport/TCurlClient.php b/lib/php/lib/Transport/TCurlClient.php index 2060d34e2..f781da969 100644 --- a/lib/php/lib/Transport/TCurlClient.php +++ b/lib/php/lib/Transport/TCurlClient.php @@ -99,7 +99,7 @@ class TCurlClient extends TTransport */ public function __construct($host, $port = 80, $uri = '', $scheme = 'http') { - if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri{0} != '/')) { + if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri[0] != '/')) { $uri = '/' . $uri; } $this->scheme_ = $scheme; diff --git a/lib/php/lib/Transport/THttpClient.php b/lib/php/lib/Transport/THttpClient.php index 0158809d2..4d6be32fe 100644 --- a/lib/php/lib/Transport/THttpClient.php +++ b/lib/php/lib/Transport/THttpClient.php @@ -106,7 +106,7 @@ class THttpClient extends TTransport */ public function __construct($host, $port = 80, $uri = '', $scheme = 'http', array $context = array()) { - if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri{0} != '/')) { + if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri[0] != '/')) { $uri = '/' . $uri; } $this->scheme_ = $scheme; |