You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/05 13:56: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=17226723#comment-17226723 ] 

ASF subversion and git services commented on AVRO-2096:
-------------------------------------------------------

Commit 177822a3db9569926a5053c250793bf5b0bf3458 in avro's branch refs/heads/branch-1.10 from Siad Ardroumli
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=177822a ]

AVRO-2096: PHP Added missing methods. (#912)



> PHP - Missing function skip_array in AvroIOBinaryDecoder causes php critical error
> ----------------------------------------------------------------------------------
>
>                 Key: AVRO-2096
>                 URL: https://issues.apache.org/jira/browse/AVRO-2096
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: php
>    Affects Versions: 1.8.0
>            Reporter: Andrew Pinder
>            Assignee: Siad Ardroumli
>            Priority: Critical
>             Fix For: 1.11.0, 1.10.1
>
>
> 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
(v8.3.4#803005)