You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Andrew Pinder (JIRA)" <ji...@apache.org> on 2018/10/17 09:33:00 UTC

[jira] [Commented] (AVRO-2096) PHP - Missing function skip_array in AvroIOBinaryDecoder causes php critical error

    [ https://issues.apache.org/jira/browse/AVRO-2096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16653250#comment-16653250 ] 

Andrew Pinder commented on AVRO-2096:
-------------------------------------

skip_union, skip_enum and skip_fixed methods also missing

> PHP - Missing function skip_array in AvroIOBinaryDecoder causes php critical error
> ----------------------------------------------------------------------------------
>
>                 Key: AVRO-2096
>                 URL: https://issues.apache.org/jira/browse/AVRO-2096
>             Project: Avro
>          Issue Type: Bug
>          Components: php
>    Affects Versions: 1.8.0
>            Reporter: Andrew Pinder
>            Priority: Critical
>
> 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
> {code}
> 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))
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)