avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Glaesemann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-627) Add PHP Avro library
Date Thu, 26 Aug 2010 20:21:54 GMT

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

Michael Glaesemann commented on AVRO-627:
-----------------------------------------

I put the 64-bit check in deliberately. As I understand it, the {{json_decode}} function in
current releases of PHP casts JSON long values to floats on 32-bit platforms. It looks like
a future release will allow representing longs as strings on 32-bit via a [JSON_BIGINT_AS_STRING
option|http://www.php.net/manual/en/function.json-decode.php], but it's not available now,
unfortunately. So even if I did my PHP bit-twiddling using the GMP library, I wouldn't be
able to get the actual value out of the JSON, unless I parsed the JSON myself.

I'll build a 32-bit VM and see if I can figure out something.

Another option would be to start from scratch and build the PHP lib using the C library as
an extension, though when I first took a look at that, it didn't look feasible.

Any other ideas? I'm open to suggestions.



> Add PHP Avro library
> --------------------
>
>                 Key: AVRO-627
>                 URL: https://issues.apache.org/jira/browse/AVRO-627
>             Project: Avro
>          Issue Type: New Feature
>          Components: php
>            Reporter: Michael Glaesemann
>            Assignee: Michael Glaesemann
>             Fix For: 1.4.0
>
>         Attachments: AVRO-627.patch.2.zip, AVRO-627.patch.3.zip, AVRO-627.patch.zip
>
>
> I've developed a PHP library for Avro against the Avro 1.3.3 spec as part
> of using Avro at myYearbook.com. It's based on the Python and Ruby
> libraries. Current functionality includes schema parsing, Avro data file and
> string IO.
> Known issues:
>  - Support for field defaults is incomplete.
>  - Lacks RPC and protocol support, JSON encoding, and deflate codec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message