Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5103

PHP 7.4 THttpClient deprecated error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • PHP - Library
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              chriskapp Christoph Kappestein
              chriskapp Christoph Kappestein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h