Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2096

PHP - Missing function skip_array in AvroIOBinaryDecoder causes php critical error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.8.0
    • 1.11.0, 1.10.1
    • php
    • None

    Description

      On encountering invaid schema avro dies when it calles $decoder->skip_array() - a method which does not exist. I note that skip_map() also doesnot exist

      2017-10-16 09:20:41] critical Error: Call to undefined method AvroIOBinaryDecoder::skip_array() in /Volumes/Sites/projects/domainSearch/search-results-daemon/vendor/rg/avro-php/lib/avro/datum.php:771
      Stack trace:
      #0 /Volumes/Sites/projects/domainSearch/search-results-daemon/vendor/rg/avro-php/lib/avro/datum.php(661): AvroIODatumReader->skip_data(Object(AvroArraySchema), Object(AvroIOBinaryDecoder))
      #1 /Volumes/Sites/projects/domainSearch/search-results-daemon/vendor/rg/avro-php/lib/avro/datum.php(557): AvroIODatumReader->read_record(Object(AvroRecordSchema), Object(AvroRecordSchema), Object(AvroIOBinaryDecoder))
      #2 /Volumes/Sites/projects/domainSearch/search-results-daemon/vendor/rg/avro-php/lib/avro/datum.php(499): AvroIODatumReader->read_data(Object(AvroRecordSchema), Object(AvroRecordSchema), Object(AvroIOBinaryDecoder))
      #3 /Volumes/Sites/projects/domainSearch/search-results-daemon/vendor/rg/avro-php/lib/avro/data_file.php(301): AvroIODatumReader->read(Object(AvroIOBinaryDecoder))
      

      Attachments

        Issue Links

          Activity

            People

              siad007 Siad Ardroumli
              amrpinder Andrew Pinder
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: