You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Christoph Kappestein (Jira)" <ji...@apache.org> on 2020/02/18 20:07:00 UTC

[jira] [Updated] (THRIFT-5103) PHP 7.4 THttpClient deprecated error

     [ https://issues.apache.org/jira/browse/THRIFT-5103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Kappestein updated THRIFT-5103:
-----------------------------------------
    Attachment: fix_PHP_7_4_compatibility_use_square_brackets.patch

> PHP 7.4 THttpClient deprecated error
> ------------------------------------
>
>                 Key: THRIFT-5103
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5103
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>    Affects Versions: 0.13.0
>            Reporter: Christoph Kappestein
>            Priority: Major
>             Fix For: 0.14.0
>
>         Attachments: fix_PHP_7_4_compatibility_use_square_brackets.patch
>
>
> Currently there is a problem with THttpClient and PHP 7.4. When instantiating a new THttpClient the following deprecated error occurs:
> {{Array and string offset access syntax with curly braces is deprecated}}
> {{/home/travis/build/apioo/fusio-adapter-thrift/vendor/apache/thrift/lib/php/lib/Transport/THttpClient.php:109}}
> {{/home/travis/build/apioo/fusio-adapter-thrift/src/Connection/Thrift.php:81}}
> {{/home/travis/build/apioo/fusio-adapter-thrift/tests/Connection/ThriftTest.php:62}}
> A fix would be simply to use [] instead of {} to access a char of the string.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)