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

PHP long is treated inconsistently between decoding and encoding when using gmp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.6.3
    • None
    • php
    • None
    • 32-bit apache using gmp

    Description

      A record containing a long value decoded by avro using gmp cannot be re-encoded. It fails validation because read_long returns a string value when using gmp and on encode is_valid_datum() for long requires an int value.

      Attachments

        1. AVRO-1053.patch
          2 kB
          Doug Cutting
        2. patch.txt
          1 kB
          Eric

        Activity

          People

            Unassigned Unassigned
            ejsolberg Eric
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: